Skip to content

Instantly share code, notes, and snippets.

@bofh
Last active November 28, 2015 12:18
Show Gist options
  • Save bofh/61cb0845144824e04d7c to your computer and use it in GitHub Desktop.
Save bofh/61cb0845144824e04d7c to your computer and use it in GitHub Desktop.
import pandas as pd
def read_libra(path):
data = pd.read_csv(path, skiprows=3, sep=';')
data.rename(columns={'#date':'date'}, inplace=True)
return data
def read_hdo(path):
tmp = pd.read_csv(path, encoding='latin-1', nrows=5, header=4)
cols = tmp.columns
data = pd.read_csv(path, encoding='latin-1', skiprows=6, names=cols)
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment