- Ingresar en http://especiales.lanacion.com.ar/multimedia/proyectos/16/07/jjoo_2016_medallero/index.html
- Abrir la consola (f12)
- Copiar y pegar el código que está en script.js y dar enter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FilesMatch "\.(?:inc|php|py|rb|md)$"> | |
Order allow,deny | |
Deny from all | |
</FilesMatch> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output_all.csv | |
*.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import pandas as pd | |
a = pd.read_csv("file1.csv") | |
b = pd.read_csv("file2.csv") | |
merged = pd.merge(a, b, how="inner", on="column_name") | |
merged.to_csv("merge_file1_file2.csv", index=False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** fn push items on specific object | |
* _push to _obj | |
*/ | |
function pushVarsObjs (_push, _obj){ | |
for (var c in _push){ | |
if ( typeof(_push[c]) == "object" ){ | |
// check if is an Array | |
_obj[c] = _push[c].indexOf ? [] : {}; | |
for (var k in _push[c] ){ | |
_obj[c][k] = _push[c][k]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import json | |
file_name = "file_name.csv" | |
f = open(file_name, "r") | |
output = open(file_name.replace(".csv", ".json"),'w') | |
reader = csv.DictReader(f) | |
json.dump([r for r in reader], output,indent=4,sort_keys=False) |