Let's say we have a pandas dataframe called train and it has a column called Age. What is the difference between method 1 and method 2.
avg1 = train.Age.mean()
avg2 = train['Age'].mean()
Let's say we have a pandas dataframe called train and it has a column called Age. What is the difference between method 1 and method 2.
avg1 = train.Age.mean()
avg2 = train['Age'].mean()