The books that I read in the past didn’t explain what a dataframe meant.
- A table of data in which the values of each observed variable is contained in the same column.
I’ve difficulty in reading long lines of text like the above definition, so let’s illustrate this definition with a counterexample.
We have carried out repeated experiments with four types of things and obtaine some data. (Say, poured some liquid into an empty cup and take the temperature.)
That’s not a dataframe because the temperatures (observed variable) are put into four columns.
Let’s convert the above table into a dataframe so as to understand the definition.