Natural sort a data frame column in pandas [duplicate]
问题 This question already has answers here : Naturally sorting Pandas DataFrame (2 answers) Closed 2 years ago . I would like to apply a natural sort order to a column in a pandas DataFrame . The columns that I would like to sort might contain duplicates. I have seen the related Naturally sorting Pandas DataFrame question, however it was concerning sorting the index, not any column. Example df = pd.DataFrame({'a': ['a22', 'a20', 'a1', 'a10', 'a3', 'a1', 'a11'], 'b': ['b5', 'b2', 'b11', 'b22', 'b4