From 238b7420f731cb1fdb4ea9d1b70f8bb5414c3f2b Mon Sep 17 00:00:00 2001 From: Bruce Martin Date: Fri, 8 Nov 2019 09:49:52 -0800 Subject: [PATCH] update deprecated Pandas API (#1021) * update use of deprecated API * update pandas depencency --- server/app/util/fbs/matrix.py | 2 +- server/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/util/fbs/matrix.py b/server/app/util/fbs/matrix.py index 1a0770b4..b29f4eb4 100644 --- a/server/app/util/fbs/matrix.py +++ b/server/app/util/fbs/matrix.py @@ -95,7 +95,7 @@ def serialize_typed_array(builder, source_array, encoding_info): if MatrixProxy.ismatrixproxy(arr) or sparse.issparse(arr): arr = arr.toarray() elif isinstance(arr, pd.Series): - arr = arr.get_values() + arr = arr.to_numpy() if arr.dtype != as_type: arr = arr.astype(as_type) diff --git a/server/requirements.txt b/server/requirements.txt index d3e000b0..ec853936 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -8,7 +8,7 @@ Flask-RESTful>=0.3.6 flatbuffers>=1.10.0 fsspec>=0.4.4 numpy>=1.15.2 -pandas>=0.23.1 +pandas>=0.24.2 scipy>=1.3.0 tables==3.5.1 # TEMP workaround for https://github.com/theislab/scanpy/issues/832 aka h5py regression