Skip to content
Snippets Groups Projects
Commit 6f412d84 authored by Pravesh's avatar Pravesh
Browse files

periodical lab 2

parent 01abf9ef
No related branches found
No related tags found
No related merge requests found
q1.py 0 → 100644
import pandas as pd
import numpy as np
text=pd.read_csv('Automobile_data.csv')
print(text.iloc[0:5,:])
print(text.tail(5))
text=text.fillna(np.nan)
print(text.iloc[:,0:10])
data=text.iloc[:,9]
print(text.loc[text['price'].idxmax()])
data1=text.groupby('company')['body-style'].nunique()
print(data1)
import matplotlib.pyplot as plt
Y=text.iloc[:,9]
X=text.iloc[:,1]
plt.plot(X, Y)
plt.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment