i was in 2 challenge of Python in this part (attachment)
but when i run, this error Appear (AttributeError: ‘DataFrame’ object has no attribute ‘value_counts’)
BUT, when i run in VSCODE notebook.ipynb the code runs very well
Help me please!
i was in 2 challenge of Python in this part (attachment)
but when i run, this error Appear (AttributeError: ‘DataFrame’ object has no attribute ‘value_counts’)
BUT, when i run in VSCODE notebook.ipynb the code runs very well
Help me please!
The error is on the line of the a=(df[[‘salary’,‘native-country’]].value_counts()[‘>50K’]/df[[‘salary’,‘native-country’]].value_counts()[‘<=50K’])*100
circled in red