Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter authored Jun 21, 2024
1 parent f74d07f commit f80ee53
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def _sequence_to_db_object(iterable, save=False):
"""
if not hasattr(iterable, "__iter__"):
return {0: iterable}
if isinstance(iterable, pd.DataFrame):
return iterable.to_dict(orient='index')
is_int64 = False
is_float64 = False
for t in iterable:
Expand Down

0 comments on commit f80ee53

Please sign in to comment.