-
-
Save atodev/7bbbad5948124b3059fe596335ce3749 to your computer and use it in GitHub Desktop.
Visualizations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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