Skip to content
Snippets Groups Projects
Commit 6fc2731d authored by K V Ragul's avatar K V Ragul
Browse files

periodical 2

parent e91ddaa0
No related branches found
No related tags found
No related merge requests found
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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment