Commit 31a273ff authored by Shengpu Tang (tangsp)'s avatar Shengpu Tang (tangsp)
Browse files

improve error handling

- cases with missing time-invariant or time-dependent data
parent 368b13e9
......@@ -102,7 +102,9 @@ df_data, df_types = detect_variable_data_type(df_data, value_type_override, args
df_time_invariant, df_time_series = split_by_timestamp_type(df_data)
# Process time-invariant data
s, s_feature_names, s_feature_aliases = process_time_invariant(df_time_invariant, args)
if len(df_time_invariant) > 0:
s, s_feature_names, s_feature_aliases = process_time_invariant(df_time_invariant, args)
# Process time-dependent data
X, X_feature_names, X_feature_aliases = process_time_dependent(df_time_series, args)
if len(df_time_series) > 0:
X, X_feature_names, X_feature_aliases = process_time_dependent(df_time_series, args)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment