Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Feature Requests (v.0.0.3) #18

Open
HHammond opened this issue Jan 20, 2016 · 5 comments
Open

API Feature Requests (v.0.0.3) #18

HHammond opened this issue Jan 20, 2016 · 5 comments

Comments

@HHammond
Copy link
Owner

  • set_font
  • set_background - change cell background colours
  • set_alternating - apply alternating even-odd colours
  • set_hover - apply hover effects
  • set_cell_height - set minimum cell height
  • set_cell_width - set minimum cell width
  • describe - add stats similar to DataFrame.describe()
@HHammond HHammond changed the title Add set_color to API API Feature Requests Jan 20, 2016
@HHammond HHammond changed the title API Feature Requests API Feature Requests (v.0.0.2) Jan 21, 2016
@HHammond HHammond added this to the v0.0.2 milestone Jan 21, 2016
@alimanfoo
Copy link

+1 for setting cell background color based on value. I'm sure you've thought of these already, but some use cases: (1) set colour based on mapping from (categorical) values to colours; (2) set colour using colour map, with user able to provide vmin, vmax, cmap and possibly normalize arguments to control value to colour transformation; (3) set colour using threshold on value, eg, red if > 5. Would be amazing if prettypandas could support these!

@HHammond
Copy link
Owner Author

There already is colour-map support and min, max background support in the Pandas API http://pandas.pydata.org/pandas-docs/stable/style.html#Building-Styles. They have some neat functionality implemented. Since PrettyPandas subclasses pandas.core.Styler we get all that stuff for free.

I do think if a negative value colour indicator isn't built into pandas core then it definitely belongs here.

@HHammond
Copy link
Owner Author

Also I think I should include those examples in the documentation so that people are aware

@HHammond HHammond changed the title API Feature Requests (v.0.0.2) API Feature Requests (v.0.0.3) Jan 21, 2016
@alimanfoo
Copy link

Wow, I didn't know about that, perfect! Good idea to include an example in
prettypandas docs.

On Thursday, 21 January 2016, Henry Hammond [email protected]
wrote:

There already is colour-map support and min, max background support in the
Pandas API
http://pandas.pydata.org/pandas-docs/stable/style.html#Building-Styles.
They have some neat functionality implemented. Since PrettyPandas
subclasses pandas.core.Styler we get all that stuff for free.

I do think if a negative value colour indicator isn't built into pandas
core then it definitely belongs here.


Reply to this email directly or view it on GitHub
#18 (comment)
.

Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health http://cggh.org
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Web: http://purl.org/net/aliman
Email: [email protected] [email protected]
Tel: +44 (0)1865 287721

@pybokeh
Copy link

pybokeh commented Mar 26, 2016

Please consider using axis='columns', axis='index' instead of axis=0, axis=1 to win over people who don't have numpy background. Pandas api supports this as well. See:

pandas-dev/pandas#9658

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants