You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So in 01 - Data Exploration.ipynb notebook we have print(df_students.groupby(df_students.Pass)['StudyHours', 'Grade'].mean()) , but this gives an error below. ValueError: Cannot subset columns with a tuple with more than one element. Use a list instead.
Solution:
Change it to print(df_students.groupby(df_students.Pass)[['StudyHours', 'Grade']].mean()) to fix and resolve it.
Note:
A very small but important fix.
The text was updated successfully, but these errors were encountered:
So in
01 - Data Exploration.ipynb
notebook we haveprint(df_students.groupby(df_students.Pass)['StudyHours', 'Grade'].mean())
, but this gives an error below.ValueError: Cannot subset columns with a tuple with more than one element. Use a list instead.
Solution:
Change it to
print(df_students.groupby(df_students.Pass)[['StudyHours', 'Grade']].mean())
to fix and resolve it.Note:
A very small but important fix.
The text was updated successfully, but these errors were encountered: