To read the given data and perform the univariate analysis with different types of plots.
Univariate analysis is basically the simplest form to analyze data. Uni means one and this means that the data has only one kind of variable. The major reason for univariate analysis is to use the data to describe. The analysis will take data, summarise it, and then find some pattern in the data.
Read the given data.
Get the information about the data.
Remove the null values from the data.
Mention the datatypes from the data.
Count the values from the data.
Do plots like boxplots,countplot,distribution plot,histogram plot.
import pandas as pd
import numpy as np
import seaborn as sns
df=pd.read_csv('superstore.csv')
df
df.head()
df.info()
df.describe()
df.isnull().sum()
df.dtypes
df['Postal Code'].value_counts()
sns.boxplot(x='Postal Code', data=df)
sns.countplot(x='Postal Code',data=df)
sns.distplot(df["Postal Code"])
sns.histplot(x='Postal Code',data=df)
Thus we have read the given data and performed the univariate analysis with different types of plots.