mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-06 11:48:11 +08:00
update deprecated Pandas API (#1021)
* update use of deprecated API * update pandas depencency
This commit is contained in:
@@ -95,7 +95,7 @@ def serialize_typed_array(builder, source_array, encoding_info):
|
|||||||
if MatrixProxy.ismatrixproxy(arr) or sparse.issparse(arr):
|
if MatrixProxy.ismatrixproxy(arr) or sparse.issparse(arr):
|
||||||
arr = arr.toarray()
|
arr = arr.toarray()
|
||||||
elif isinstance(arr, pd.Series):
|
elif isinstance(arr, pd.Series):
|
||||||
arr = arr.get_values()
|
arr = arr.to_numpy()
|
||||||
if arr.dtype != as_type:
|
if arr.dtype != as_type:
|
||||||
arr = arr.astype(as_type)
|
arr = arr.astype(as_type)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ Flask-RESTful>=0.3.6
|
|||||||
flatbuffers>=1.10.0
|
flatbuffers>=1.10.0
|
||||||
fsspec>=0.4.4
|
fsspec>=0.4.4
|
||||||
numpy>=1.15.2
|
numpy>=1.15.2
|
||||||
pandas>=0.23.1
|
pandas>=0.24.2
|
||||||
scipy>=1.3.0
|
scipy>=1.3.0
|
||||||
tables==3.5.1
|
tables==3.5.1
|
||||||
# TEMP workaround for https://github.com/theislab/scanpy/issues/832 aka h5py regression
|
# TEMP workaround for https://github.com/theislab/scanpy/issues/832 aka h5py regression
|
||||||
|
|||||||
Reference in New Issue
Block a user