Day25 Goals: what we will make by the end of the day
General knowledge to Name the U.S states
pandas documentation - pandas 1.4.2 documentation
API reference - pandas 1.4.2 documentation
#1. Read data via file module
with open("weather_data.csv") as data_file:
data = data_file.readlines()
print(data)
#2. Read data via csv module
import csv
with open("weather_data.csv") as data_file:
data = csv.reader(data_file)
print(type(data))
temperatures = []
for row in data:
temperatures.append(row[1])
temperatures.remove("temp")
print(temperatures)
#Install pandas