Seaborn doesn't locate the data even though I imported it correctly

35 Views Asked by At

I'm trying to make a scatterplot using seaborn in a Collab enviroment, the thing is that when I'm running the cell corresponding to the graph it shows:

ValueError: Could not interpret value 'fahrenheit' for parameter 'y'

I've tried using a different laptop and it works there! Also I've tried updating seaborn in my cmd and running the program in JupyterNotebook, but seems impossible. Has anyone had a symilar problem? How did you solve it?

The code is the following:

import pandas as pd
import seaborn as sb
datos = pd.read_csv("celsius.csv")
sb.scatterplot(x = "celsius", y = "fahrenheit", data = datos, hue = "fahrenheit", palette = "coolwarm")

And yes, I've checked that the fahrenheit column does exist in the data.

I've tried updating seaborn, checking that the column does exist, run the code on a different computer, and tried different enviroments in mine.

0

There are 0 best solutions below