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

How to get Pandas DataFrame with column descriptions? #127

Open
Hoeze opened this issue Jul 18, 2018 · 0 comments
Open

How to get Pandas DataFrame with column descriptions? #127

Hoeze opened this issue Jul 18, 2018 · 0 comments

Comments

@Hoeze
Copy link

Hoeze commented Jul 18, 2018

Hi,
I'd like to get some dataframe for a given design_info which describes the different rows.
E.g. if there is some formula ~ 1 + cat1 + cat2, I'd like to get a dataframe:

cat1   cat2    |   cat1[T.1]   cat1[T.2]   cat1[T.3]   cat2
  A     X      |      0           0           0           0
  A     Y      |      0           0           0           1
 ...

Is this possible with Patsy?

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

No branches or pull requests

1 participant