Seaborn
0]Countplot [aama x axix pr name che aene cross ma lkhva tay che]
sns.countplot(x='Type 1',data=df,palette='rainbow')
plt.xticks(rotation=70)
plt.rcParams['xtick.labelsize'] = 15
plt.rcParams['axes.labelsize'] = 20
01]ax=df[1:50].plot.area(alpha=0.4, figsize=(5,4))
ax.legend(bbox_to_anchor=(1.0,1.0))
[aama instant,season,yr,mnth,hr........graph ni bhar lkhva mate
use tay che ax.legenda vadi line add karvi]
1] sns.barplot(x='sex',y='total_bill',data=tips)
Boxplot
2]sns.boxplot(data=df) #pokemon
2] # Pre-format DataFrame #pokemon
2]sns.boxplot(x='day',y='total_bill',data=tips,palette="rainbow") #palette use for color
#class
2]sns.boxplot(data=tips,palette="rainbow",orient='h') #class
#orient ie lkhe ye che ke output y axis pr aave jo orient na lkheye
na lkheye to output x axis pr aave ie totalbil,tip,size ae x axis pr aave
2] sns.boxplot(x='day',y='total_bill',hue='smoker',data=tips,palette="rainbow")
#we use hue for comparisn
#class
Violinplot
#3c ie class ma krelu
3c]sns.violinplot(x='day',y='total_bill',hue='smoker',data=tips,palette="rainbow")
3c]sns.violinplot(x='day',y='total_bill',hue='sex',data=tips,palette="rainbow")
3]#pokemon detaset
Swarm plot pokemon dataset
sns.countplot(x='Type 1',data=df,palette='rainbow')
plt.xticks(rotation=70)
plt.rcParams['xtick.labelsize'] = 15
plt.rcParams['axes.labelsize'] = 20
01]ax=df[1:50].plot.area(alpha=0.4, figsize=(5,4))
ax.legend(bbox_to_anchor=(1.0,1.0))
[aama instant,season,yr,mnth,hr........graph ni bhar lkhva mate
use tay che ax.legenda vadi line add karvi]
1] sns.barplot(x='sex',y='total_bill',data=tips)
Boxplot
2]sns.boxplot(data=df) #pokemon
2] # Pre-format DataFrame #pokemon
stats_df = df.drop(['Total', 'Stage', 'Legendary'], axis=1)
# New boxplot using stats_df
sns.boxplot(data=stats_df)
#class
2]sns.boxplot(data=tips,palette="rainbow",orient='h') #class
#orient ie lkhe ye che ke output y axis pr aave jo orient na lkheye
na lkheye to output x axis pr aave ie totalbil,tip,size ae x axis pr aave
2] sns.boxplot(x='day',y='total_bill',hue='smoker',data=tips,palette="rainbow")
#we use hue for comparisn
#class
Violinplot
#3c ie class ma krelu
3c]sns.violinplot(x='day',y='total_bill',hue='smoker',data=tips,palette="rainbow")
3c]sns.violinplot(x='day',y='total_bill',hue='sex',data=tips,palette="rainbow")
3]#pokemon detaset
Swarm plot pokemon dataset
4]# Swarm plot with Pokemon color palette
sns.swarmplot(x='Type 1', y='Attack', data=df,
palette=pkmn_type_colors)
4]# Set figure size with matplotlib
plt.figure(figsize=(10,6))
# Create plot
sns.violinplot(x='Type 1',
y='Attack',
data=df,
inner=None, # Remove the bars inside the violins
palette=pkmn_type_colors)
sns.swarmplot(x='Type 1',
y='Attack',
data=df,
color='k', # Make points black
alpha=0.7) # and slightly transparent
# Set title with matplotlib
plt.title('Attack by Type')
Swarm plot
5]sns.swarmplot(x='Stat', y='value', data=melted_df,
hue='Type 1')
5]
The article is so appealing. You should read this article before choosing the Big Data Implementation Services you want to learn.
ReplyDeleteWell written articles like yours renews my faith in today's writers. The article is very informative. Thanks for sharing such beautiful information.
ReplyDeleteBest Data Migration tools
Penetration testing companies USA
What is Data Lake
Artificial Intelligence in Banking
What is Data analytics
Big data Companies USA