Home > other >  Newcomer help, about python pandas colums of crosstab function error
Newcomer help, about python pandas colums of crosstab function error

Time:10-29

The code I wrote is: pd. Crosstab (index=merged_data [' gender '], colums=merged_data [' age '], values=merged_data [' student_star], aggfunc='mean')
Display error is: got an unexpected keyword argument 'colums'

Just learn a little bit of python began to practice to write something on the card in the , is there a big help to see why this mistake?

Tried to put the colums and index value exchange (index=merged_data [' age '], colums=merged_data [' gender ']), also shows that got an unexpected keyword argument 'colums, changed pivot_table function, also showed that got an unexpected keyword argument' colums'
  • Related