High-Performance Pandas: Скорость и память

Pandas по умолчанию щедр к типам: целые часто как int64, даже если диапазон мал. На миллионах строк это лишние гигабайты. Оптимизация — это подбор компактных dtype (category, int8, float32) и векторные операции вместо Питон-циклов и лишних .apply().

Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.