Skip to content

add to ColumnManipulation methods #20

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

Open
sagivba opened this issue Sep 10, 2017 · 0 comments
Open

add to ColumnManipulation methods #20

sagivba opened this issue Sep 10, 2017 · 0 comments

Comments

@sagivba
Copy link
Owner

sagivba commented Sep 10, 2017

  • 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

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