Skip to content

Commit

Permalink
Fix changing categorical to datetime when table has only one row
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-ide committed Jul 2, 2024
1 parent cba81a9 commit d591f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/views/data_tables/dt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def force_datetime_type(attribute_node):
if data_frame is None:
raise webapp.home.exceptions.DataFileNotFound("Data file not found.")
if data_frame[column_name].size > 0:
return infer_datetime_format(data_frame[column_name][1])
return infer_datetime_format(data_frame[column_name][0])
else:
return ''

Expand Down

0 comments on commit d591f29

Please sign in to comment.