Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Univariant Variable Analysis - Multiple Plots

# Visualization is the easiest way to have an inference about the overall data and the outliers.
#Plotting Graphs Before treating outliers 
for col in df.describe().columns:
  fig, ax =plt.subplots(1,3, constrained_layout=True)
  fig.set_size_inches(20, 3)
  sns.distplot(df[col], ax=ax[0]).set(title="Distplot")
  sns.histplot(df[col], ax=ax[1]).set(title="Histplot")
  sns.boxplot(df[col], ax=ax[2]).set(title="Boxplot")
  plt.suptitle(f'{col.title()}',weight='bold')
  fig.show()
 
PREVIOUS NEXT
Tagged: #Univariant #Variable #Analysis #Multiple #Plots
ADD COMMENT
Topic
Name
4+6 =