

import pandas as pd from pandas import Series arr = Series() print(arr) Simple pandas Series output. As you can see, pandas Series has assigned the default index values from 0 to 3 (4 - 1). It is a simple Python pandas Series example. If you really wanted to, then you could also use a Categorical array or even a plain-old list: Native Python list: df.groupby(bins.tolist()) Pandas Categorical array: df.groupby(bins. What's important is that bins still serves as a sequence of labels, one of cool, warm, or hot.

See many more examples on plotting data directly from dataframes here: Pandas Dataframe: Plot Examples with Matplotlib and Pyplot Plot the number of visits a website had, per day and using another column (in this case browser) as drill down. The axis labels are collectively called index.Pandas Series is nothing but a column in an excel sheet.

It can hold data of many types including objects, floats, strings and integers.
