| ▲ | bijowo1676 3 hours ago | ||||||||||||||||
Strongly disagree with the author. For dumb simple select group by OLAP queries on medium data ? Sure clickhouse local or duckdb works perfectly well. But if you need to construct dataset ? Or process existing dataset, do heavy filtering, transformation, reshaping, splitting? The proper ETL work, then pandas is really the perfect use case. And pandas can work with small memory footprint as well, its actually trivial to do that, plus there are libraries like Modin that are upgrades over pandas with pandas api Pandas is the swiss knife tool of data science that lets you do anything with the data and it integrates well with ML libraries | |||||||||||||||||
| ▲ | minimaxir 3 hours ago | parent | next [-] | ||||||||||||||||
It's subjective, but IMO polars's APIs are better and than pandas's for ETL. Notably, pandas ported over polars's use of .col() for the 3.0.0 release: https://pandas.pydata.org/docs/whatsnew/v3.0.0.html#initial-... Also, pandas's group_by() and window function pipelines made me want to tear my hair out while both are easy in polars. | |||||||||||||||||
| ▲ | __mharrison__ 2 hours ago | parent | prev [-] | ||||||||||||||||
Use pandas if you want advanced analytics, visualization, or ml. Use SQL if you need to move data around. | |||||||||||||||||
| |||||||||||||||||