cat_ref.columns.str.strip()
时间: 2024-05-11 16:14:18 浏览: 65
w_pub_get_sort_columns.rar_PowerBuilder_pb 控件
This code does not modify the original dataframe or its columns. It only removes leading and trailing whitespace from the column names. To modify the original dataframe, you would need to assign the cleaned column names back to the dataframe:
```
cat_ref.columns = cat_ref.columns.str.strip()
```
阅读全文