Now we can use the DataFrame that we created to get some basic numbers; we will use the following steps to do so:
- We can count how much data there is through the count() method, as shown in the following screenshot:
We can see that there are 150 observations. Note that this excludes NA values (that is, missing values), so it is possible that not all of these observations will be 150.
- We can also compute the sample mean, which is the arithmetic average of all the numbers in the dataset, by simply calling the mean() method, as shown in the following screenshot:
Here, we can see the arithmetic means for the numeric ...