Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import numpy as np # linear algebra
import pandas as pd # data processing
df = pd.read_csv('household_power_consumption.txt', sep=';',
parse_dates={'dt' : ['Date', 'Time']}, infer_datetime_format=True,
low_memory=False, na_values=['nan','?'], index_col='dt')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment