Skip to content

Instantly share code, notes, and snippets.

@atodev
Last active September 2, 2022 16:05
Show Gist options
  • Select an option

  • Save atodev/7bbbad5948124b3059fe596335ce3749 to your computer and use it in GitHub Desktop.

Select an option

Save atodev/7bbbad5948124b3059fe596335ce3749 to your computer and use it in GitHub Desktop.
Visualizations
sns.lineplot(x='Date',y='Amount',data=df[df['Account Type'] == 'Reveue'])
#cleanup
plt.figure(figsize=(20,6))
sns.lineplot(x='Date',y='Amount',hue='Account Description',estimator=none, data=df[df['Account Type'] == 'Reveue'])
plt.show
#oneItem
plt.figure(figsize=(20,6))
sns.lineplot(x='Date',y='Amount',hue='Account Description',estimator=none, data=df[df['Account Description'] == 'Product Sales']).set_title('Seasonal
plt.show
from matplotlib import pyplot as plt
import seaborn as sns
sns.violinplot(x='Account type', y = 'Amount',data=df)
#make bigger
plt.figure(figsize=(20,6))
sns.violinplot(x='Account type', y = 'Amount',data=df).set_title('Account type ViolinPlot')
plt.show()
#center in on an item
#make bigger
plt.figure(figsize=(20,6))
sns.violinplot(x='Account type', y = 'Amount',data=df[df['Account Type']=='Liability']).set_title('Account type ViolinPlot')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment