Last answered:

02 Nov 2023

Posted on:

28 Apr 2023

0

I get an error when I add the squeeze = True to the pd.read method.

4 answers ( 0 marked as helpful)
Instructor
Posted on:

28 Apr 2023

0

Hi Donald!

Thanks for reaching out!

Apparently, the squeeze argument has been deprecated and is probably already removed in the latest Python versions. Instead, you can append .squeeze("columns") to the call the squeeze:

data.squeeze("columns")

Best,

Ivan

Posted on:

29 Apr 2023

0

Thanks but now I'm getting this error.

Instructor
Posted on:

29 Apr 2023

0

Hi Donald!

Please try typing "columns" with a small 'c'. 


data.squeeze("columns")


Hope this helps.

Best,

Ivan

Posted on:

02 Nov 2023

0

Above answer worked when i got same error.

Submit an answer