Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import numpy as np
- import matplotlib.pyplot as plt
- import seaborn as sns
- df=pd.read_csv("tested.csv")
- from google.colab import drive
- drive.mount('/content/drive')
- df.head(5)
- sns.distplot(df['Fare'])
- x=df['Fare']
- plt.hist(x,bins=25,color='green',edgecolor='blue',alpha=0.5)
- plt.title('Histogram')
- plt.xlabel('Sex')
- plt.ylabel('Pclass')
- sns.jointplot(x='Age',y='Fare',data=df)
- sns.pairplot(df)
- sns.barplot(x='Age',y='Sex',data=df)
- sns.boxplot(x='Age',y='Sex',data=df)
- sns.violinplot(x='Sex',y='Age',data=df,hue='Sex')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement