Commit c25c5cf5 authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

snapshot: silence a pandas warning

parent 39c66c8ad7a1
......@@ -40,7 +40,7 @@ class Snapshot(SeriesServices):
if ts is None:
return None
# use `view` as a workarround for "cannot include dtype 'M' in a buffer"
indexes = np.ascontiguousarray(ts.index).view(np.uint8).data.tobytes()
indexes = np.ascontiguousarray(ts.index.values).view(np.uint8).data.tobytes()
indexes_size = struct.pack('!L', len(indexes))
if self.isstr:
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