File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -1201,9 +1201,11 @@ def equals(self, other):
1201
1201
1202
1202
This function allows two Series or DataFrames to be compared against
1203
1203
each other to see if they have the same shape and elements. NaNs in
1204
- the same location are considered equal. The column headers do not
1205
- need to have the same type, but the elements within the columns must
1206
- be the same dtype.
1204
+ the same location are considered equal.
1205
+
1206
+ The row/column index do not need to have the same type, as long
1207
+ as the values are considered equal. Corresponding columns must be of
1208
+ the same dtype.
1207
1209
1208
1210
Parameters
1209
1211
----------
@@ -1232,13 +1234,6 @@ def equals(self, other):
1232
1234
numpy.array_equal : Return True if two arrays have the same shape
1233
1235
and elements, False otherwise.
1234
1236
1235
- Notes
1236
- -----
1237
- This function requires that the elements have the same dtype as their
1238
- respective elements in the other Series or DataFrame. However, the
1239
- column labels do not need to have the same type, as long as they are
1240
- still considered equal.
1241
-
1242
1237
Examples
1243
1238
--------
1244
1239
>>> df = pd.DataFrame({1: [10], 2: [20]})
You can’t perform that action at this time.
0 commit comments