Swifter Speeds Up Pandas DataFrames

preview_player
Показать описание
Today we learn about Swifter, a Python module that allows us to speed up Pandas data frames by using multi-processing.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

the pandarallel library would be something similar that can be a good video where you compare it to swifter.

chaoticregression
Автор

This is great, was just looking at polar

Kinnoshachi
Автор

Very easy to apply in current code. Really useful demonstration.

marcosoliveira
Автор

Good video, but a question... I tried to do it applying a function to scrape h1 tags for URLs in a pandas dataFrame.... when I use the apply method by itself passing my function it only takes 26 seconds, but with swifter.apply(myfunction), then even after 2 minutes I don't get the output, would I be doing something wrong??

I love your tutorials, cheers!

henryacero
Автор

found dask hard to use and master...hoping to incorporate this in previous slow pandas operations .. really hoping this is the answer..
tks for sharing

mrmuranga
Автор

Appreciated. Even better by avoiding some common youtube mistakes:
1) "What's up guys?"
Don't ever says "guys". Excludes me, because I am an individual, I have never figured out how to join the group called "guys" (the cool kids) and would not join anyway, I'm only interested in making sure I don't become like them.
Don't ask questions with no intention to have the answer, not logical. A function that doesn't return anything.

2) "So let's get right into it"
... followed by avoiding getting right into it, instead going to the intro clip. Not logical, no matter how much everybody's doing it. Everybody's illogical.

This has been:
Today's edition of making you uncomfortable so you can become even better.

Have a nice day. <smug emoji not found>

garyha