drop empty column in dataframe data cleaning in python code example Example: pandas drop empty columns DataFrameName.dropna(axis=1, how='all', inplace=True)