README is empty
This file contains 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 pandas as pd | |
# Append correlative row from dict | |
df = pd.DataFrame(columns=['a','b','c']) | |
df = df.append(pd.Series({'a': 1, 'b': 2}), ignore_index=True) | |
df = df.append(pd.Series({'a': 4, 'c': 6}), ignore_index=True) | |
print('Append correlative row from dict\n', df) | |
# Append row from dict with defined index | |
df.loc[3] = pd.Series({'a': 1, 'b': 2, 'c': 3}) |
This file contains 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
from io import StringIO | |
import pandas as pd | |
DATA="""id,target,valores | |
1,100,20 | |
1,100,30 | |
1,100,50 | |
1,100,15 | |
1,100,45 |
This file contains 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 | |
# Author: --<> | |
# Purpose: | |
# Created: 12/29/10 | |
from HTMLParser import HTMLParser # Python 2 | |
import pandas as pd | |
# from html.parser import HTMLParser # Python 3 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
require 'webdrone' | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile['startup.homepage_welcome_url.additional'] = 'about:blank' | |
profile['browser.helperApps.neverAsk.saveToDisk'] = 'images/jpeg, application/pdf, application/octet-stream, application/download, application/vnd.ms-excel' | |
a0 = Webdrone.create browser: :firefox, timeout: 10, firefox_profile: profile | |
def entrar_dga(a0) | |
a0.open.url 'http://dgasatel.mop.cl/' |
This file contains 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
from math import log | |
def vel(q, a): | |
""" | |
Mean Velocity (q[m3/s], a[m2]) | |
q is flow rate | |
a is cross-sectional area | |
""" | |
return q / a |
This file contains 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 -*- | |
# | |
# hamming.py | |
# | |
# Copyright 2012 Javier Rovegno Campos <javier.rovegno@gmail.com> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
This file contains 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 numpy as np | |
f = open('numeros.txt', 'r') | |
numbers = f.readlines() | |
f.close() | |
i = 0 | |
for num in numbers: | |
numbers[i] = float(num) | |
i += 1 |
This file contains 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
from math import sqrt | |
sum, sum2, n = 0.0, 0.0, 0.0 | |
f = open('numeros.txt', 'r') | |
numbers = f.readlines() | |
f.close() | |
for num in numbers: | |
k = float(num) | |
sum += k |
NewerOlder