-
Index.union(other)
[source] -
Form the union of two Index objects and sorts if possible.
Parameters: other : Index or array-like Returns: union : Index Examples
1234>>> idx1
=
pd.Index([
1
,
2
,
3
,
4
])
>>> idx2
=
pd.Index([
3
,
4
,
5
,
6
])
>>> idx1.union(idx2)
Int64Index([
1
,
2
,
3
,
4
,
5
,
6
], dtype
=
'int64'
)
Index.union()

2025-01-10 15:47:30
Please login to continue.