Skip to content

Commit

Permalink
metadata str
Browse files Browse the repository at this point in the history
  • Loading branch information
silil committed Oct 27, 2023
1 parent 37f526a commit c3be958
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/triage/component/architect/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,15 @@ def create_entity_date_df(


def change_datetimes_on_metadata(metadata):
variables = ['end_time', 'feature_start_time', 'first_as_of_time', 'last_of_time', 'matrix_info_end_time']
for variable in variables:
metadata[variable] = str(metadata[variable])
metadata_keys = list(metadata.keys())

for element in metadata_keys:
if element.endswith("_time"):
metadata[element] = str(metadata[element])

#variables = ['end_time', 'feature_start_time', 'first_as_of_time', 'last_of_time', 'matrix_info_end_time']
#for variable in variables:
# metadata[variable] = str(metadata[variable])

return metadata

Expand Down

0 comments on commit c3be958

Please sign in to comment.