Skip to content

Commit b17bb4e

Browse files
anirudnitsproost
authored andcommitted
DOC: Minor fixes in pandas/testing.py docstring. (pandas-dev#28752)
1 parent 7df1569 commit b17bb4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/util/testing.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def assert_almost_equal(
294294
----------
295295
left : object
296296
right : object
297-
check_dtype : bool / string {'equiv'}, default 'equiv'
297+
check_dtype : bool or {'equiv'}, default 'equiv'
298298
Check dtype if both a and b are the same type. If 'equiv' is passed in,
299299
then `RangeIndex` and `Int64Index` are also considered equivalent
300300
when doing type checking.
@@ -585,7 +585,7 @@ def assert_index_equal(
585585
----------
586586
left : Index
587587
right : Index
588-
exact : bool / string {'equiv'}, default 'equiv'
588+
exact : bool or {'equiv'}, default 'equiv'
589589
Whether to check the Index class, dtype and inferred_type
590590
are identical. If 'equiv', then RangeIndex can be substituted for
591591
Int64Index as well.
@@ -860,7 +860,7 @@ def assert_interval_array_equal(left, right, exact="equiv", obj="IntervalArray")
860860
----------
861861
left, right : IntervalArray
862862
The IntervalArrays to compare.
863-
exact : bool / string {'equiv'}, default 'equiv'
863+
exact : bool or {'equiv'}, default 'equiv'
864864
Whether to check the Index class, dtype and inferred_type
865865
are identical. If 'equiv', then RangeIndex can be substituted for
866866
Int64Index as well.
@@ -1089,7 +1089,7 @@ def assert_series_equal(
10891089
right : Series
10901090
check_dtype : bool, default True
10911091
Whether to check the Series dtype is identical.
1092-
check_index_type : bool / string {'equiv'}, default 'equiv'
1092+
check_index_type : bool or {'equiv'}, default 'equiv'
10931093
Whether to check the Index class, dtype and inferred_type
10941094
are identical.
10951095
check_series_type : bool, default True
@@ -1251,10 +1251,10 @@ def assert_frame_equal(
12511251
Second DataFrame to compare.
12521252
check_dtype : bool, default True
12531253
Whether to check the DataFrame dtype is identical.
1254-
check_index_type : bool / string {'equiv'}, default 'equiv'
1254+
check_index_type : bool or {'equiv'}, default 'equiv'
12551255
Whether to check the Index class, dtype and inferred_type
12561256
are identical.
1257-
check_column_type : bool / string {'equiv'}, default 'equiv'
1257+
check_column_type : bool or {'equiv'}, default 'equiv'
12581258
Whether to check the columns class, dtype and inferred_type
12591259
are identical. Is passed as the ``exact`` argument of
12601260
:func:`assert_index_equal`.

0 commit comments

Comments
 (0)