Skip to content

add to ColumnManipulation methods #20

Description

@sagivba
  • split_to_columns(column,split_func,splited_columns_name) : returns tuple of colomns

  • drop_columns(df,columns_list) returns df without the columns_list

  • apply_by_dict(df, **kward)
    for key, value in kwargs.iteritems():
    if key not in list(df):
    print warn not in columns list
    continue
    if value is function:
    value=[value]
    if value int iterable:
    print warn
    for f in value
    df[key]=df[key].apply(f)
    return df

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions