Untitled

exchange two columns
mail@pastecode.io avatar
unknown
python
2 years ago
229 B
4
Indexable
#define _DEBUG_

col_list = list(group.columns)
print(col_list)

a, b = col_list.index('work_year'), col_list.index('experience_level')

col_list[b], col_list[a] = col_list[a], col_list[b]
group = group[col_list]

group