2018-12-18 pandasのデータフレームの内容を条件分岐で置換する方法 df.columns = df.columns.where(~(df.columns < 1), 0) ※1以下のデータを0に置換する 場合