Skip to content

Commit

Permalink
fix(datetime32): work around pandas 1.0.0 regression (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeyerov authored Feb 3, 2020
1 parent 7f6fd6c commit 51c8720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphistry/vgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def boolEncoder(vg, series, dtype):

def datetimeEncoder(vg, series, dtype):
vec = vg.int32_vectors.add()
series32 = series.astype('int64').map(lambda x: x / 1e9).astype(numpy.int32)
series32 = series.view('int64').map(lambda x: x / 1e9).astype(numpy.int32)
for val in series32:
vec.values.append(val)

Expand Down

0 comments on commit 51c8720

Please sign in to comment.