Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import seaborn as sns
- import pandas as pd
- import matplotlib.pylab as plt
- from matplotlib.pyplot import show
- df = pd.read_excel('1.xlsx', index_col=0)
- sns.set(font="Verdana")
- df_plot = sns.barplot(
- data = df,
- x = df['Features'],
- y = df['Pearson correlations'],
- color = "b",
- edgecolor = 'w'
- )
- # rotate labels 45 degrees
- locs, labels = plt.xticks()
- plt.setp(labels, rotation=45)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement