Replies: 1 comment
-
I think, the highlighting of the dataframe is based on what the highlighter detects via regex: I am not sure if the renderer (print, ipython html, whatever) receives the required datatype information. |
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
-
Hi all. 👋
I was wondering if it's possible to color-code dtypes of a pandas dataframe when pretty printing in the ipython REPL?
For example:
str
in black,int
in darkblue,float
in dark green,categorical
in purple,object
(undefined) in gray?I was thinking this might be helpful in data exploration using ipython - especially when the pandas read_csv magic to determine the most appropriate dtype fails again?
I'm very new to rich... Maybe this is already possible?
Cheers 🙏
Beta Was this translation helpful? Give feedback.
All reactions