import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import math
food_prices = pd.read_csv('food prices SOM.csv')
food_prices.info()
food_prices.drop([0],axis=0,inplace = True)
pd.options.display.max_rows = 500
food_prices.head(3)
food_prices.head(2)
food_prices['price'] = food_prices.price.astype(float)
food_prices.info()
food_prices['date'] = pd.to_datetime(food_prices['date'], format = '%Y-%m-%d')
food_prices.info()
avg_prices = food_prices[['price']].resample('M').mean()