You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
284 B
19 lines
284 B
6 months ago
|
import csv
|
||
|
from pprint import pprint
|
||
|
import pandas as pd
|
||
|
|
||
|
records = []
|
||
|
|
||
|
with open("ex53.csv") as csvfile:
|
||
|
reader = csv.DictReader(csvfile)
|
||
|
for row in reader:
|
||
|
records.append(row)
|
||
|
|
||
|
# do you analysis here
|
||
|
|
||
|
df = pd.DataFrame(records)
|
||
|
|
||
|
pprint(df)
|
||
|
|
||
|
df.to_excel("ex54.xlsx")
|