Skip to content
Practice_1
# Start coding here...
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#matplotlib inline
import seaborn as snsdf=pd.read_csv('Data-Mobiles.csv')
df.head()rgb = np.random.randint(0,255,(3,3,3))
print(rgb)rgb=np.where(rgb<=100,255,rgb)
print(rgb)plt.imshow(rgb)
plt.show()x=np.random.normal(loc=0, scale=1, size=(1000))
sns.distplot(x, hist=False)
plt.show()from scipy.stats import norm
x = np.linspace(-5,5,100)
y = norm.cdf(np.linspace(-5,5,100))
plt.plot(x, y)
plt.show()