While processing data I am getting the value error which contains NaN, infinity or a value too large for dtype
You can use the Pandas function to get the list of columns that had NaN pd.isnull(train_data).sum() > 0 After handling the new Nan the code will work fine and give the result: input contains nan, infinity or a value too large for dtype('float64') Result portfolio_id False desk_id False office_id False pf_category…
Answered Feb 26, 2021 · 591 Views Read answer →