Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
299 B
2
Indexable
Never
import pandas
data = pandas.read_csv('crops_usa.csv')

acres = list(data['Acres'])
years = list(data['Year'])

year = 1980

# ваш код здесь
acres_one_year = []
for index in range(len(acres)):
    if index in years == year:
        acres_one_year.append(acres[index])
print(acres_one_year)