Python Learning
Wednesday, 19 February 2020
Alias for column in pandas
Use
rename
df.rename(columns={"by_week": "Last 7 days", "by_month": "Last 30 days"}).to_html()
from :
https://stackoverflow.com/questions/46096307/alias-for-column-in-pandas
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment