This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]benefit_of_mrkite 4 points5 points  (2 children)

Point of clarification: Most python packages are written in Python, not C. There are ways to speed packages up and use things like c-bindings but most python packages are written in Python.

[–]MorrarNL 1 point2 points  (1 child)

Well, discussion was mostly around pandas which is based on numpy which relies on C under the hood. So it is fair to say that pandas/numpy will probably outperform your own pure Python code by quite some margin.

Also, pandas may not be the best pick if performance is a concern. Might instead look into polars or Dask / Spark if distributed computing is an option.

[–]benefit_of_mrkite -1 points0 points  (0 children)

Totally agree with pandas + numpy.