Skip to content

Instantly share code, notes, and snippets.

@firstfu
Last active April 23, 2019 03:59
Show Gist options
  • Save firstfu/049c0a636b9abd8205a01c745644a45f to your computer and use it in GitHub Desktop.
Save firstfu/049c0a636b9abd8205a01c745644a45f to your computer and use it in GitHub Desktop.
# 排序欄位值
df.sort_values('periods')
# 重新排序欄位順序
orderCol = ['ballDate', 'periods', 'ballN1', 'ballN2', 'ballN3', 'allN']
df = df[orderCol]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment