Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this line not working in vs code #38

Open
stevegeorge2002 opened this issue Apr 7, 2023 · 1 comment
Open

this line not working in vs code #38

stevegeorge2002 opened this issue Apr 7, 2023 · 1 comment

Comments

@stevegeorge2002
Copy link

stevegeorge2002 commented Apr 7, 2023

corr = sales.corr()

corr
ValueError: could not convert string to float: 'November'
image

@skillmaker-dev
Copy link

I'm very late but my response can help others, starting from pandas version 2.0.0 you have to use numeric_only=True
corr = sales.corr(numeric_only=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants