replace __swap_column_names function with native pandas call