Commit ea599ac7 authored by Arnaud Campeas's avatar Arnaud Campeas
Browse files

tsio: test that the inserted series have a time-like index

parent 90db1824cacc
......@@ -114,6 +114,10 @@ class TimeSerie(object):
if not len(newts):
return
assert ('<M8[ns]' == newts.index.dtype or
'datetime' in str(newts.index.dtype) or
isinstance(newts.index, pd.MultiIndex))
newts.name = name
table = self._get_ts_table(cn, name)
......
Supports Markdown
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