Skip to content Skip to sidebar Skip to footer

Pandas Error - Invalid Value Encountered

I'm new to Pandas. I downloaded and installed Anaconda. Then I tried running the following code via the Spyder app: import pandas as pd import numpy as np train = pd.read_csv('/U

Solution 1:

I have the same error and have decided that it is a bug. It seems to be caused by the presence of NaN values in a DataFrame in Spyder. I have uninstalled and reinstalled all packages and nothing has effected it. NaN values are supported and are completely valid in DataFrames especially if they have a DateTime index.

In the end I have settled for suppressing this warnings as follows.

import warnings
warnings.simplefilter(action = "ignore", category = RuntimeWarning)

Post a Comment for "Pandas Error - Invalid Value Encountered"