You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/concatenation.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,8 +54,8 @@ When the variables present in the objects to be concatenated aren't exactly the
54
54
This is otherwise called taking the `"inner"` (intersection) or `"outer"` (union) join.
55
55
For example, given two anndata objects with differing variables:
56
56
57
-
>>> a = AnnData(sparse.eye(3), var=pd.DataFrame(index=list("abc")))
58
-
>>> b = AnnData(sparse.eye(2), var=pd.DataFrame(index=list("ba")))
57
+
>>> a = AnnData(sparse.eye(3, format="csr"), var=pd.DataFrame(index=list("abc")))
58
+
>>> b = AnnData(sparse.eye(2, format="csr"), var=pd.DataFrame(index=list("ba")))
59
59
>>> ad.concat([a, b], join="inner").X.toarray()
60
60
array([[1., 0.],
61
61
[0., 1.],
@@ -208,11 +208,11 @@ Note that comparisons are made after indices are aligned.
208
208
That is, if the objects only share a subset of indices on the alternative axis, it's only required that values for those indices match when using a strategy like `"same"`.
Correct {attr}`anndata.AnnData.X` type to include {class}`~anndata.experimental.CSRDataset` and {class}`~anndata.experimental.CSCDataset` as possible types {user}`ilan-gold`
0 commit comments