open_in_new
content_copy
d = dict.fromkeys(df.select_dtypes(object).columns, 0) df = df.assign(**d)