-
How can one do this? Renaming columns with |
Beta Was this translation helpful? Give feedback.
Answered by
jrycw
May 22, 2024
Replies: 2 comments
-
@micycle1, you might want to try something like this: import pandas as pd
from great_tables import GT
df = pd.DataFrame({" a": [1, 2], "2b": [3, 4]})
GT(df).cols_label(**{" a": "a", "2b": "b"}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
micycle1
-
It seems there are no follow-up issues related to this discussion, so I'll close it for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@micycle1, you might want to try something like this: