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

Adding variable description in DataFrame #39

Closed
ghost opened this issue Apr 6, 2011 · 5 comments
Closed

Adding variable description in DataFrame #39

ghost opened this issue Apr 6, 2011 · 5 comments
Milestone

Comments

@ghost
Copy link

ghost commented Apr 6, 2011

Hi,

I think it would be great if DataFrame is able to store additional property (list of strings) which contains the description for each variable (column). And then it can be shown by themselves with variable names as well as in the output of pandas.DataFrame.info(). I think with this DataFrame will be pretty much self contained. Right now I need to keep additional object or a text file which contains those descriptions.

Please let me know what do you think!

-Joon

@CRP
Copy link
Contributor

CRP commented Oct 20, 2011

I second this request. Something similar is available in matlab's dataset object, which, in addition to ObsNames (=pandas indices) and VarNames (=pandas columns), also has VarDescription und Unit, which are freely usable. I, for example, use the former for verbose descriptions of the column names, and the latter to hold excel formatting strings (eg '0.00%'). This is useful when I want to output the dataset to excel nicely formatted.

@lodagro
Copy link
Contributor

lodagro commented Oct 24, 2011

Indeed this sound interesting.
On top of that, it would be nice to able to store unit for each column (as CRP commented).

@lodagro
Copy link
Contributor

lodagro commented Mar 6, 2012

Something more to store ... default column formatter.

It would be nice to be able to define a default column display formatter.
print df.to_string(formatters=...) can be used to do this, but it would be easier not having to type this each time.

Use case could be to display integers in non decimal format, typically hex or binary.

@cpcloud
Copy link
Member

cpcloud commented Jul 29, 2013

might be nice to combine all of these into one meta data issue to rule them all

@jreback
Copy link
Contributor

jreback commented Mar 9, 2014

closing as covered by #2485

@jreback jreback closed this as completed Mar 9, 2014
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
…agate_other_pymongo_errors

MDP-574 Only catch OperationFailure exceptions during auth
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

4 participants