Our examination of splitting data within a pandas object will be broken into several steps. In the first, we will look at creating a grouping based on columns, and then examine the properties of the grouping that is created. We will then examine accessing various properties and results of the grouping to learn several properties of the groups that were created. Then we will examine grouping using index labels instead of content in columns.
Splitting data
Grouping by a single column's values
The sensor data consists of three categorical variables (sensor, interval, and axis) and one continuous variable (reading). It is possible to group by any single categorical variable by passing its name to .groupby(). The following...