How to speed up (2-5x) your Pandas code and save time and resources?
Prodramp
What is Modin: Modin is a drop-in replacement for pandas. While pandas is single-threaded, Modin lets you instantly speed up your workflows by scaling pandas so it uses all of your cores. Modin works especially well on larger datasets, where pandas becomes painfully slow or runs out of memory.
By simply replacing the import statement, Modin offers users effortless speed and scale for their pandas workflows:
Replace:
- import pandas as pd with:
- import modin.pandas as pd And you don't need to change any part of your code.
This video tutorial shows you the comparison between pandas and modin about the speed you get and where you will not get the speed or modin becomes the overhead.
- (00:00) Modin/Pandas Intro
- (01:36) Loading dataset comparison
- (08:58) Dataframe processing comparison
- (14:00) Creating hexmap with dataframe
- (17:49) Creating heatmap with dataframe
- (19:42) Creating large dataset by loading CSV
- (23:00) Dataframe concatenation
- (27:10) modin technical details
- (28:30) Source code at GitHub
Source code (GitHub) URL: https://github.com/prodramp/python-projects/tree/main/modin-pandas
Please visit:
Prodramp LLC | https://prodramp.com | @prodramp https://www.linkedin.com/company/prodramp
Content Creator: Avkash Chauhan (@avkashchauhan) https://www.linkedin.com/in/avkashchauhan
Tags: #ai #aicloud #h2oai #driverlessai #machinelearning #cloud #mlops #model #collaboration #deeplearning #modelserving #modeldeployment #keras #tensorflow #pytorch #datarobot #datahub #aiplatform #aicloud #modelperformance #modelfit #modeleffect #modelimpact #modelbias #modeldeployment #modelregistery #modelpipeline #neptuneai #pythondsp #pythonaudio #streamlit #pythonapps #deepchecks #modeltesting #codeartifact #dataartifact #modelartifact #onnx #aws #supervisor #ec2 #supervisord #kaggle #wildfire #naturaldisaster #kepler.gl #mapbox mapboxgl #wildfireml #lightgbm #xgboost #classification #regression #react #chakraui #datavisualization #dataengineering #frontenddevelopment #wildfire #modin #pandas ... https://www.youtube.com/watch?v=E_WKAWnY6fc
184995666 Bytes