Рет қаралды 24,574
Hey Everyone! Here's a brief demo of some data visualization techniques with python pandas. Let me know what you want me to do next!
Here's the worksheet I used, it's hosted by microsoft:
go.microsoft.c...
#python #pandas #datavisualization
Support the Channel on Patreon --
/ derricksherrill
Join The Socials --
Reddit - / codewithderrick
FB - / codewithderrick
Insta - / codewithderrick
Twitter - / codewithderrick
LinkedIn - / derricksherrill
GitHub - github.com/Der...
*****************************************************************
Full code from the video:
import pandas as pd
import matplotlib.pyplot as plt
excel_file_path = "Financial Sample.xlsx"
df = pd.read_excel(excel_file_path)
#print(df)
Time series
df_vtt_canada = df.loc[(df['Country'] == 'Canada') & (df['Product'] == 'VTT') & (df['Segment'] == 'Government')]
df_vtt_canada = df_vtt_canada.sort_values(by=['Date'])
#df_vtt_canada.plot(x='Date', y='Profit')
#plt.show()
df_products = df.groupby(['Product']).sum()
df_products['Units Sold'].plot.pie()
plt.show()
Packages (& Versions) used in this video:
Python 3.8
Pandas 1.0.5
*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
github.com/Der...
Check out my website:
www.derrickshe...
If you liked the video - please hit the like button. It means more than you know. Thanks for watching and thank you for all your support!!
--- Channel FAQ --
What text editor do you use?
Atom - atom.io/
What Equipment do you use to film videos?
www.amazon.com...
What editing software do you use?
Adobe CC - www.adobe.com/...
Premiere Pro for video editing
Photoshop for images
After Effects for animations
Do I have any courses available?
Yes & always working on more!
www.udemy.com/...
Where do I get my music?
I get all my music from the copyright free KZbin audio library
www.youtube.co...
Let me know if there's anything else you want answered!
-------------------------
Always looking for suggestions on what video to make next -- leave me a comment with your project! Happy Coding!