Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for model-build failure due to presence of survey inputs as a dic…
…tionary (e-mission#954) * Filtered out rows with dictionary in user_label_df The idea is to check the data type using isinstance() and then apply this check on the entire data frame as a whole instead of doing it iteratively on each row which is much slower. These rows are then filtered out of the original dataframe leaving behind only the non-dict rows. * Added log statements to indicate dataframe filtering done Added log statement to the greedy_similarity_binning, to indicate filtering is being done for the dictionary elements in the dataframe if the column is 'trip_user_input'. * Modified filtering of survey inputs Now filtering survey inputs before dataframe itself is created by checking whether each dictionary value is a value or a nested dictionary. * Add TODO so I can merge this --------- Co-authored-by: Mahadik, Mukul Chandrakant <[email protected]> Co-authored-by: K. Shankari <[email protected]>
- Loading branch information