File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ Fix {func}` anndata.experimental.backed.Dataset2D.reindex ` internal setting {user}` ilan-gold `
Original file line number Diff line number Diff line change @@ -389,9 +389,12 @@ def reindex(
389389 }
390390 el = self .ds .drop_vars (extension_arrays .keys ())
391391 el = el .reindex ({index_dim : index }, method = None , fill_value = fill_value )
392- for col in self .ds :
393- el [col ] = pd .Series (self .ds [col ], index = self .index ).reindex (
394- index , fill_value = fill_value
392+ for col , data in extension_arrays .items ():
393+ el [col ] = XDataArray .from_series (
394+ pd .Series (data .data , index = self .index ).reindex (
395+ index .rename (self .index .name ) if index is not None else index ,
396+ fill_value = fill_value ,
397+ )
395398 )
396399 return Dataset2D (el )
397400
You can’t perform that action at this time.
0 commit comments