filmov
tv
Separate Excel Data into Workbooks by Column Values - Python Pandas Tutorial

Показать описание
Hey Everyone! In this one we'll talk a look at how we can break down a workbook into multiple other workbooks depending ont he value inside a column.
We do it here for all unique values in one of our columns, but you could do the conditional indexing any way you like. I hope this shows you the baseline of how to do it!
Support the Channel on Patreon --
Join The Socials --
*****************************************************************
Workbook -
Full code from the video:
import pandas as pd
# print(df)
split_values = df['Shift'].unique()
# print(split_values)
for value in split_values:
df1 = df[df['Shift'] == value]
Packages (& Versions) used in this video:
Pandas 0.25.0
Python 3.8
*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
Check out my website:
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?
What Equipment do you use to film videos?
What editing software do you use?
Premiere Pro for video editing
Photoshop for images
After Effects for animations
Do I have any courses available?
Yes & always working on more!
Where do I get my music?
I get all my music from the copyright free Youtube audio library
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!
We do it here for all unique values in one of our columns, but you could do the conditional indexing any way you like. I hope this shows you the baseline of how to do it!
Support the Channel on Patreon --
Join The Socials --
*****************************************************************
Workbook -
Full code from the video:
import pandas as pd
# print(df)
split_values = df['Shift'].unique()
# print(split_values)
for value in split_values:
df1 = df[df['Shift'] == value]
Packages (& Versions) used in this video:
Pandas 0.25.0
Python 3.8
*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
Check out my website:
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?
What Equipment do you use to film videos?
What editing software do you use?
Premiere Pro for video editing
Photoshop for images
After Effects for animations
Do I have any courses available?
Yes & always working on more!
Where do I get my music?
I get all my music from the copyright free Youtube audio library
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!
Комментарии