July 2019
Beginner to intermediate
740 pages
16h 52m
English
The pandas.Series class provides a data structure for arrays of data of a single type, just like the NumPy array. However, it comes with some additional functionality. This one-dimensional representation can be thought of as a column in a spreadsheet. We have a name for our column, and the data we hold in it is of the same type (since we are measuring the same variable):
>>> import pandas as pd>>> place = pd.Series(array_dict['place'], name='place')>>> place0 262km NW of Ozernovskiy, Russia 1 25km E of Bitung, Indonesia 2 42km WNW of Sola, Vanuatu 3 13km E of Nueva Concepcion, Guatemala 4 128km SE of Kimbe, Papua New Guinea Name: place, dtype: object
Note the numbers on the left of the result; these correspond to the row number in ...
Read now
Unlock full access