By the way, there are 2 ways to access a dataframe column. Using bracket syntax (df["column_name"]) or dot notation syntax (df.column_name). It is recommended that you use bracket syntax since you could in theory create a column name that happens to be an attribute of the dataframe. Another reason to use bracket syntax is if your column name has a space in it. Then in this case, the dot notation syntax would not work.