Applied Data Science with Python and Jupyter by Alex Galea

Applied Data Science with Python and Jupyter by Alex Galea

Author:Alex Galea [Alex Galea]
Language: eng
Format: epub, pdf
Publisher: Packt Publishing
Published: 2018-10-30T16:00:00+00:00


Note

The apply method is great because it can solve a variety of problems and allows for easily readable code. Often though, vectorized methods such as pd.Series.str can accomplish the same thing much faster. Therefore, it's advised to avoid using it if possible, especially when working with large datasets. We'll see some examples of vectorized methods in the upcoming chapter.

Verify the number of samples we've grouped into each age category by typing df.groupby('AGE_category').size() into a new cell and running it:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.