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.
Developed by : M Vignesh
Registration Number : 212220233002
import numpy as np
import pandas as pd
import io
from scipy import stats
import seaborn as sns
from google.colab import files
uploaded = files.upload()
df = pd.read_csv(io.BytesIO(uploaded['SuperStore.csv']))
print(df)
df.info()
df.describe()
df.isnull()
df.isnull().sum()
df['Postal Code'] = df['Postal Code'].fillna(df['Postal Code'].mode()[0])
df.isnull().sum()
df.dtypes
df['Postal Code'].value_counts()
df.skew()
df.kurtosis()
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)
DATA INFORMATION
DATA'S DATATYPES
BOXPLOT
COUNTPLOT
DISTRIBUTION PLOT
HISTOGRAM PLOT
Thus we have read the given data and performed the univariate analysis with different types of plots.