API

colassigner Package

Helper for assigning and accessing pandas columns

Functions

camel_to_snake(cc_str)

experiment(assigner_inst, base_df, col_to_treat)

get_all_cols(cls)

returns a list of strings of all columns given by the type

get_att_value(accessor, attname)

get the true assigned value for the class attribute

get_dag(cls)

generates a dag of the reliances of columns based on the ast of a colassigner

get_new_cols(cls)

measure_effect(assigner, base_df, cause_col, ...)

Classes

ChildColAssigner(df, parent_assigner)

assigner specifically for nested structures

Col()

ColAccessor()

describe and access raw columns

ColAssigner()

define functions that create columns in a dataframe

Class Inheritance Diagram

digraph inheritance21f814a7d2 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ChildColAssigner" [URL="api/colassigner.ChildColAssigner.html#colassigner.ChildColAssigner",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="assigner specifically for nested structures"]; "ColAssigner" -> "ChildColAssigner" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Col" [URL="api/colassigner.Col.html#colassigner.Col",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Generic" -> "Col" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ColAccessor" [URL="api/colassigner.ColAccessor.html#colassigner.ColAccessor",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="describe and access raw columns"]; "ColAssigner" [URL="api/colassigner.ColAssigner.html#colassigner.ColAssigner",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="define functions that create columns in a dataframe"]; "ColAccessor" -> "ColAssigner" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Generic" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Abstract base class for generic types."]; }