Pandas 1.1.0 introduced the key argument as a more intuitive way to achieve this:
df.sort_values(by='Single', inplace=True, key=lambda col: col.str.lower())
Pandas 1.1.0 introduced the key argument as a more intuitive way to achieve this:
df.sort_values(by='Single', inplace=True, key=lambda col: col.str.lower())