Seaborn TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'

While Plotting Only Regression & Bar Plot , Encounter with the same Eroor . But same thing when i Plotted On Google Colab it is Working But not Working on my Jupyter Notebook.

. Can anyone help me to fix this Error ??

Possibly an issue with seaborn version on your localhost.

1 Like

Would you tell me how to fix this Error.@sanjayk

You can either try this with a different version of seaborn, or use the default version on google colab.

1 Like

Sir is it mean I have to install/update another version of Seaborn??? Then how to install/update another version of Seaborn. I have Anaconda setup and also Separately Jupyter setup . Please guide me.@Ishvinder

Please refer the stackoverflow link shared above by @sanjayk.

1 Like

I noticed I also had 0.10.0 on my system so I upgraded using the following command:

pip3 install seaborn --upgrade