給試算表使用者的 Python
Chris Cardillo
Data Scientist
sns.barplot(x='store', y='revenue', data=totals)
plt.show()

sns.barplot(x='store',
y='revenue',
data=totals)
# 加上標題
# 加上 x 軸標籤
# 加上 y 軸標籤
plt.show()

sns.barplot(x='store',
y='revenue',
data=totals)
plt.title('Revenue by Store')
# 加上 x 軸標籤
# 加上 y 軸標籤
plt.show()

sns.barplot(x='store',
y='revenue',
data=totals)
plt.title('Revenue by Store')
plt.xlabel('Store')
# 加上 y 軸標籤
plt.show()

sns.barplot(x='store',
y='revenue',
data=totals)
plt.title('Revenue by Store')
plt.xlabel('Store')
plt.ylabel('Revenue (USD)')
plt.show()

sns.barplot(x='store',
y='revenue',
data=totals)
plt.title('Revenue by Store')
plt.xlabel('Store')
plt.ylabel('Revenue (USD)')
sns.despine()
plt.show()

sns.set_style('whitegrid')
sns.barplot(x='store',
y='revenue',
data=totals)
plt.title('Revenue by Store')
plt.xlabel('Store')
plt.ylabel('Revenue (USD)')
sns.despine()
plt.show()



給試算表使用者的 Python