Skip to content

How to get Pandas DataFrame with column descriptions? #127

Open
@Hoeze

Description

@Hoeze

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions