Generation

generate functionWed, 08 Mar 2023

データフレームの全カラムの全レコードに含まれる「=====」のレコードを削除したい

def drop_row_with_dashes(df): return df[df.T.apply(lambda row: '=====' not in row.values)]

Questions about programming?Chat with your personal AI assistant