我有大约 100 列的 de DataFrame
我需要选择 col2 到 col4 和 col54。我该怎么做?我试过:
df = df.loc[:,'col2':col4']
但我无法添加 col54
python dataframe pandas
dataframe ×1
pandas ×1
python ×1