Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 23, 2021 07:16
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amankharwal/3c5150e843d18133d002608de4f4fae7 to your computer and use it in GitHub Desktop.
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')
df.shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment