Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tstables/tstable.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ def append(self,rows,convert_strings=False):
if rows.__class__ == pandas.core.frame.DataFrame:
if rows.empty:
return # Do nothing if we are appending nothing
if rows.index.__class__ != pandas.tseries.index.DatetimeIndex:
if rows.index.__class__ != pandas.DatetimeIndex:
raise ValueError('when rows is a DataFrame, the index must be a DatetimeIndex.')

# Convert to records
records = rows.to_records(index=True,convert_datetime64=False)
records = rows.to_records(index=True)

# Need to make two type conversions:
# 1. Pandas stores strings internally as variable-length strings, which are converted to objects in NumPy
Expand Down Expand Up @@ -402,4 +402,4 @@ def __fetch_or_create_partition_table(self,partition_dt):