Тёмный

Stop Wasting Time on Simple Excel Tasks, Use Python 

John Watson Rooney
Подписаться 86 тыс.
Просмотров 11 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@JohnWatsonRooney
@JohnWatsonRooney 7 месяцев назад
To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/JohnWatsonRooney . The first 200 of you will get 20% off Brilliant’s annual premium subscription.
@mathewrtaylor
@mathewrtaylor 7 месяцев назад
Great tips! A suggestion as an addition, I would add to help with the potential memory issues of all the data frames is to import gc, and in your processing loop add: del [[df]] gc.collect This will delete and remove from memory the df dataframe since you've already appended it to data in each iteration. This has saved me several times with memory issues. Hope this helps!
@JohnWatsonRooney
@JohnWatsonRooney 7 месяцев назад
thanks thats very helpful!
@kashifrana6798
@kashifrana6798 2 месяца назад
Can you please exactly let me know where we need to add these two lines? Thx
@eziola
@eziola 7 месяцев назад
Keep doing data cleaning examples in Pandas! Could be a lot of views for videos like these. Great video! Thank you
@AliceShisori
@AliceShisori 7 месяцев назад
thank you for yet another highly-applicable video John. just out of curiosity since you made this video and I know you are more well-versed in data extraction, do you plan to make anything else about excel and data manipulation :D ?
@JohnWatsonRooney
@JohnWatsonRooney 7 месяцев назад
thanks - Yes I'd like to do a bit more on that side, i'll have a think and put some ideas together!
@oOBenictusOo
@oOBenictusOo 7 месяцев назад
I usually find your videos top-notch, but this case can also be permanently solved with Power Query in a maximum setup time of 5 minutes... looking forward to your next video, cheers.
@rcdny
@rcdny 7 месяцев назад
very true. since i learned power query i've saved 2hrs a day
@samuelmartins82
@samuelmartins82 7 месяцев назад
he's just giving an example of the many types of automations that can be done with python. If you just need simple data processing, power query will do the job. But when you need to do something more complex, like getting some information from the web in real time, sending several emails with reports, etc.. power query will be useless
@oOBenictusOo
@oOBenictusOo 7 месяцев назад
@@samuelmartins82 Agreed, but here's the context as described in the title: it's a simple Excel task and not complex. Sure, it can be solved with Python, but I don't agree with the argument about wasting time in this context. This recurring task is solved faster and, in the long run, more efficiently with Power Query. Nonetheless, it's interesting because the presented solution could be the beginning of a slightly more complex solution.
@imconfused1237
@imconfused1237 7 месяцев назад
@@oOBenictusOoAgree, these techniques are ‘building blocks’ for much more involved and often fully bespoke ground-up solutions. It can be considered foundation knowledge. However, as you rightly say, simple ETL data operations are best met with optimised tooling, such as PowerQuery. It also avoids creating solutions which require expensive dev’s to support.
@tmb8807
@tmb8807 2 месяца назад
I'm sure you know this by now, but the Polars read_csv method supports glob patterns, so the loop approach is unnecessary - you can simply pass _folder + "/*.csv"_ as the source parameter and the concatenation will be done automatically.
@JohnWatsonRooney
@JohnWatsonRooney 2 месяца назад
Yea you are right that’s much better thanks for clarifying!
@adarshjamwal3448
@adarshjamwal3448 7 месяцев назад
Great job john thanks for this content. I think your channel may be grow more. If you make and put another types of content like django, flask, javascript like that.
@Rice0987
@Rice0987 7 месяцев назад
While I'm using power query.🤗
@Rice0987
@Rice0987 7 месяцев назад
But thank you for your channel, cause i'm have started to move in python direction. :)
@bakasenpaidesu
@bakasenpaidesu 7 месяцев назад
.
@tridibbiswas3361
@tridibbiswas3361 7 месяцев назад
Thank you the video. These simple tutorials help people like to grasp some of the rudiments of the learning a programming language like python. BTW could you share the like to your dot files for nevoim. Would like to use of the stuff seen in your nevoim and figure out how to do it
@JohnWatsonRooney
@JohnWatsonRooney 7 месяцев назад
hey, thanks. my neovim is basically kickstart.ncim by teej, and a simple tmux. not a lot extra!
@tridibbiswas3361
@tridibbiswas3361 7 месяцев назад
@@JohnWatsonRooney Thank you
@markbennett5626
@markbennett5626 7 месяцев назад
Even more powerful once Python in Excel is released to mainstream
@Pankaj-Verma-
@Pankaj-Verma- 7 месяцев назад
Thanks.
@Kiriletto
@Kiriletto 5 месяцев назад
Great vid. Can you tell me why, after you have appended the files in the loop (which I assume merges them together within the list) you then concatenate them into a new data store (ie the result)? Aren’t you combining them twice? Thanks
@tmb8807
@tmb8807 2 месяца назад
The variable 'data' here is not a dataframe. It's a Python list which contains multiple distinct dataframes (one for each file in 'files'). pd.concat is used to append them all into a single dataframe object ('result').
@hoegge
@hoegge 7 месяцев назад
Good intro on how to do this in Python, but it is not faster than Excel in any way - neither first nor subsequent runs. A video demonstrating this in Excel would take less than 1-2 minutes.
@infamous8541
@infamous8541 7 месяцев назад
Why not use knime instead?
@acharafranklyn5167
@acharafranklyn5167 7 месяцев назад
I noticed you dont like using ipynb files.....Great content
@markbennett5626
@markbennett5626 7 месяцев назад
Only way to go tbh
@christiancoronado
@christiancoronado 7 месяцев назад
Excel is a fast, simple solution for 90% of people out there. Why overcomplicating things.
@crystalcleargirl07
@crystalcleargirl07 7 месяцев назад
😂 because we have better things to do in life than opening/ importing each file in excel BY HAND where we can automate it
@christiancoronado
@christiancoronado 7 месяцев назад
Well i don't know what you do for a living, I am a CPA working for a large hospital in CA. And we only used Excel@@crystalcleargirl07
@christiancoronado
@christiancoronado 7 месяцев назад
@crystalcleargirl07 well I don't know what you do for a living. I am a CPA working for a large hospital in CA, and we only used Excel. What important job do you do that requires you to use Python
@kexec.
@kexec. 7 месяцев назад
if you know python, it is way easier than handling excel gimmicks like VBA. I'm speaking it with my experience.
@christiancoronado
@christiancoronado 7 месяцев назад
i get it, but i've been doing this for a living for the last 15 years, and I know both VBA and Python and it's just impractical to go for Python in 95% of cases. Also, PowerQuery can go above and beyond the excel row threshold and accomplish the same thing that was done here@@kexec.
Далее
This is How I Scrape 99% of Sites
18:27
Просмотров 86 тыс.
The most important Python script I ever wrote
19:58
Просмотров 199 тыс.
5 Good Python Habits
17:35
Просмотров 542 тыс.
Stop Using FirstOrDefault in .NET! | Code Cop #021
12:54
How to Design an AWESOME Function Signature in Python
28:05
Automate Excel Work with Python and Pandas
21:29
Просмотров 97 тыс.
Excel Now Has Python - And It's Awesome
24:09
Просмотров 52 тыс.
10 Python Comprehensions You SHOULD Be Using
21:35
Просмотров 148 тыс.
Learning Scraping is MUCH harder now.
10:55
Просмотров 6 тыс.
Website to Dataset in an instant
13:15
Просмотров 7 тыс.