I am quite new to pandas, so please excuse any simple errors I may not have caught or understood properly.
I'm trying to find a certain row and column in a given .csv file with pandas. Attached below is the table for reference. Table info
The table goes from 1/1/2015 to 12/31/2017. I'm trying to locate a specific month and year row based on user input, as well as locate the Temp High, Temp Avg, and Temp Low columns. I'm using a day of 1 just as a placeholder. From looking around, I've tried to use
months = {'January': 1, 'February': 2, 'March': 3, 'April': 4, 'May': 5, 'June': 6,
'July': 7, 'August': 8, 'September': 9, 'October': 10, 'November': 11, 'December': 12}
month = str(input('Enter a month: '))
year = str(input('Enter a year: '))
day = 1
print('')
find = df.loc[[str(months[month]) + '/' + str(day) + '/' + str(year)], ['Temp High', 'Temp Avg',
'Temp Low']]
to find the info I'm looking for, but this results in ""None of [Index(['6/1/2012'], dtype='object')] are in the [index]"". How do I go about fixing this? Any help is appreciated.