34cd4f7599e47bfaaac20b9ebde1e35fc1cd44ee,catalyst/utils/pandas.py,,read_csv_data,#,209

Before Change


        if "fold" in data.columns:
            del data["fold"]

    result = (
        dataframe, dataframe_to_list(df_train), dataframe_to_list(df_valid),
        dataframe_to_list(df_infer)
    )

After Change


        if data is not None and "fold" in data.columns:
            del data["fold"]

    result = (
        dataframe,
        dataframe_to_list(df_train) if df_train is not None else None,
        dataframe_to_list(df_valid) if df_valid is not None else None,
        dataframe_to_list(df_infer) if df_infer is not None else None,
    )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: catalyst-team/catalyst
Commit Name: 34cd4f7599e47bfaaac20b9ebde1e35fc1cd44ee
Time: 2019-12-31
Author: scitator@gmail.com
File Name: catalyst/utils/pandas.py
Class Name:
Method Name: read_csv_data