January 2019
Intermediate to advanced
390 pages
9h 16m
English
In pandas, the read_csv() function returns a DataFrame after reading the CSV file:
df = pd.read_csv('temp.csv')print(df)
The DataFrame is printed as follows:
date time global_active_power global_reactive_power voltage \ 0 0007-01-01 00:00:00 2.580 0.136 241.97 1 0007-01-01 00:01:00 2.552 0.100 241.75 2 0007-01-01 00:02:00 2.550 0.100 241.64 3 0007-01-01 00:03:00 2.550 0.100 241.71 4 0007-01-01 00:04:00 2.554 0.100 241.98 5 0007-01-01 00:05:00 2.550 0.100 241.83 6 0007-01-01 00:06:00 2.534 0.096 241.07 7 0007-01-01 00:07:00 2.484 0.000 241.29 8 0007-01-01 00:08:00 2.468 0.000 241.23 global_intensity sub_metering_1 sub_metering_2 sub_metering_3 0 10.6 0 0 0 1 10.4 0 0 0 2 10.4 0 0 0 3 10.4 0 0 ...
Read now
Unlock full access