4 ms·
NumPy also support conversions without copying. One thing I haven't found good way to bridge between Python is the pandas.DataFrame, it seems to be quite Python
by liuliu 6y ago
NumPy also support conversions without copying. One thing I haven't found good way to bridge between Python is the pandas.DataFrame, it seems to be quite Python focused object and iterating through DataFrame is particularly slow.
- itamarst 6y agoInternally Pandas often uses NumPy arrays, especially for numeric data, so might be able to pass things that way in some cases? E.g. `df["column_name"].values` will you get you a NumPy array.