您好,我剛剛開始使用 Python 中的 Vaex。我有一個列名混亂的數據集。我正在嘗試用“_”替換空格。在熊貓中,我能夠 df.column = df.columns.str.replace(' ', '_')但在 Vaexdf_column = df.column_names.str.replace('\s', '_', regex=True)我收到以下錯誤AttributeError Traceback(最近一次調用)在 ----> 1 df_new = df.column_names.str.replace('\s', '_', regex=True) AttributeError: 'list' object has no attribute 'str'有誰知道我可能做錯了什么?
vaex 列名稱更改
幕布斯6054654
2023-01-04 16:08:01