CommencerCommencer gratuitement

Best method of vectorization

So far, you have encountered two vectorization methods:

  • Vectorization over pandas Series
  • Vectorization over Numpy ndarrays

While these two methods outperform all the other methods, when can vectorization over NumPy ndarrays be used to replace vectorization over pandas Series?

Cet exercice fait partie du cours

Writing Efficient Code with pandas

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice