From 6fc2731dea39c131f8fd9e6af74bec3bf6b6f0da Mon Sep 17 00:00:00 2001
From: K V Ragul <cb.en.u4cse16237@cb.students.amrita.edu>
Date: Wed, 6 Mar 2019 13:04:10 +0530
Subject: [PATCH] periodical 2

---
 cb.en.u4cse16237_q1.py | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 cb.en.u4cse16237_q1.py

diff --git a/cb.en.u4cse16237_q1.py b/cb.en.u4cse16237_q1.py
new file mode 100644
index 0000000..d3113de
--- /dev/null
+++ b/cb.en.u4cse16237_q1.py
@@ -0,0 +1,36 @@
+import matplotlib.pyplot as plt
+import pandas as pd
+import numpy as np
+
+data=pd.read_csv('/home/cse3c/Downloads/Automobile_data.csv')
+
+print(data.head(n=5))
+print(data.tail(n=5))
+
+data=data.fillna(np.nan)
+print(data.iloc[:,0:10])
+
+data1=data.iloc[:,9]
+print(data.loc[data['price'].idxmax()])
+
+data2=data.groupby('company')['body-style'].nunique()
+print(data2)
+
+x=data.iloc[:,9]
+y=data.iloc[:,1]
+
+
+
+plt.plot(x,y)
+
+plt.xlabel('Car names')
+plt.ylabel('Price')
+plt.show()
+
+
+
+
+
+
+
+
-- 
GitLab