Open oldoc63 opened 2 years ago
Perhaps you want to take the average or plot a histogram of the ages. In order to do either of these tasks, you'd need to select the column.
There are two possible syntaxes for selecting all values from a column:
customers['age']
to select the ages.customers.age
When we select a single column, the result is called a Series.
Now we know how to create and load data. Let's select parts of those datasets that are interesting or important to our analyses.
Suppose you have the DataFrame called customers, which contains the ages of your customers: