From 5ba34d814eff468ef204909cce0fbe377cfe6d11 Mon Sep 17 00:00:00 2001 From: lmeyerov Date: Mon, 3 Feb 2020 15:45:44 -0800 Subject: [PATCH] fix(datetime32): work around pandas 1.0.0 regression (#146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit — https://github.com/pandas-dev/pandas/issues/31634 --- graphistry/vgraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphistry/vgraph.py b/graphistry/vgraph.py index 8ca531d533..bd027c3473 100644 --- a/graphistry/vgraph.py +++ b/graphistry/vgraph.py @@ -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)