Microsoft Excel → Python:
In Excel, you'd use =AVERAGE(TableName[ColumnName]) to find the average.
In Python:
TableName['ColumnName'].mean()
One line.
Works even if you have 10 million rows.
Post #1591
2.36K
- ❤ 5
- 👍 1
DA Data Analysis Books | Python | SQL | Excel | Artificial Intelligence | Power BI | Tableau | AI Resources @learndataanalysis · 53.3K subscribers