"""
Laptop prices analysis

"""
"""
EDA
"""
import pandas as pd 
import numpy as np 
import matplotlib.pyplot as plt 
import seaborn as sns

df=pd.read_csv('../input/laptop-price/laptop_price.csv',encoding='latin-1')
df.head()
df.shape
df.columns
df.describe()
df.Company.value_counts()
df.info()
df.Cpu.value_counts()
df.head()
sns.distplot(df,x=df.Price_euros)
df.Company.value_counts().plot(kind='bar')
df.TypeName.value_counts().plot(kind='bar')
df.head()
sns.displot(df.Inches)
df.Cpu.value_counts()
df.head()
#let's see the minimum price 
df.Price_euros.min()
df[df.Price_euros==df.Price_euros.min()]
df.Price_euros.max()
df[df.Price_euros==df.Price_euros.max()]
#the inches will influnce my choice :)
df[df.Inches==17]
df.Inches.mode()
price2inch=df[ df.Inches>=15.6 ]['Price_euros']
sns.distplot(price2inch)