mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 00:48:12 +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):
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user