我使用的熊猫版本是1.3.5,当我试图使用sort_values函数时,我遇到了一个错误。pd.sort_values(by=['post_id'], ascending=True)getattr__ raise AttributeError(f"module 'pandas' has no attribute '{name}'") AttributeError: module 'pandas' has no attr
与Pandas中的SELECT * FROM df WHERE id in (3,1,2) ORDER BY FIELD(id,3,1,2)类似的查询是什么?list_ids = [3, 1, 2]afaik .sort_values()只能按数据格式中的列进行排序注意:我不想按多个/列列表进行排序。我想按照特定的值列表对一列进行排序。