diff --git a/build/pandas.html b/build/pandas.html index 4b0ce05..c7e6941 100644 --- a/build/pandas.html +++ b/build/pandas.html @@ -369,11 +369,10 @@
# create a Series from a dictionary
age_series = pd.Series({'sarah': 42, 'amit': 35, 'zhang': 13})
print(age_series)
-amit 35
-sarah 42
+sarah 42
+amit 35
zhang 13
dtype: int64
-Notice that the Series is automatically sorted by the keys of the dictionary! This means that the order of the elements in the Series will always be the same for a given dictionary (which cannot be said for the dictionary items themselves).
9.2.1 Series Operations
The main benefit of Series (as opposed to normal lists or dictionaries) is that they provide a number of operations and methods that make it easy to consider and modify the entire Series, rather than needing to work with each element individually. These functions include built-in mapping and filtering style operations, as well as reducing aggregations.