set NaN values in pandas dataframe to 1
set NaN values in pandas dataframe to 1 Question: I have a large pandas dataframe and am struggling to set NaN values of specific columns to 1. The column types for the columns I want to work on are below: guests = object, beds = float64, bathrooms = float64, bedrooms = object. I have tried …