Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
This notebook was created as part of a case study done for the Internet of Things course attended in 5th Semester.
The amount of data received from Karnataka Co-operative Milk Federation was very limited.
The objective of this case study was to search for a way to centralize and automate the milk industry in India.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import jovian
%matplotlib inline
milk_df = pd.read_csv('MilkProduction_1951_2012_n.csv')
milk_df.columns
Index(['Year (March to Feburary)', 'Milk Production (million tonnes)',
'Human Population (million nos.)',
'Per Capita Availability - (gram./day)'],
dtype='object')
milk_df.describe()
def trendplot(x,y,title):
plt.figure(figsize=(10,10))
plt.xticks(np.arange(0,60,3), rotation = 30)
plt.title(title)
sns.set_style("whitegrid")
sns.lineplot(x = x, y = y)