@@ -743,7 +743,8 @@ def repr_class(x):
743
743
744
744
745
745
def assert_attr_equal (attr , left , right , obj = "Attributes" ):
746
- """checks attributes are equal. Both objects must have attribute.
746
+ """
747
+ checks attributes are equal. Both objects must have attribute.
747
748
748
749
Parameters
749
750
----------
@@ -820,7 +821,8 @@ def assert_is_sorted(seq):
820
821
def assert_categorical_equal (
821
822
left , right , check_dtype = True , check_category_order = True , obj = "Categorical"
822
823
):
823
- """Test that Categoricals are equivalent.
824
+ """
825
+ Test that Categoricals are equivalent.
824
826
825
827
Parameters
826
828
----------
@@ -860,7 +862,8 @@ def assert_categorical_equal(
860
862
861
863
862
864
def assert_interval_array_equal (left , right , exact = "equiv" , obj = "IntervalArray" ):
863
- """Test that two IntervalArrays are equivalent.
865
+ """
866
+ Test that two IntervalArrays are equivalent.
864
867
865
868
Parameters
866
869
----------
@@ -1009,7 +1012,8 @@ def _raise(left, right, err_msg):
1009
1012
def assert_extension_array_equal (
1010
1013
left , right , check_dtype = True , check_less_precise = False , check_exact = False
1011
1014
):
1012
- """Check that left and right ExtensionArrays are equal.
1015
+ """
1016
+ Check that left and right ExtensionArrays are equal.
1013
1017
1014
1018
Parameters
1015
1019
----------
@@ -1489,7 +1493,8 @@ def assert_sp_array_equal(
1489
1493
check_fill_value = True ,
1490
1494
consolidate_block_indices = False ,
1491
1495
):
1492
- """Check that the left and right SparseArray are equal.
1496
+ """
1497
+ Check that the left and right SparseArray are equal.
1493
1498
1494
1499
Parameters
1495
1500
----------
@@ -1724,7 +1729,8 @@ def _make_timeseries(start="2000-01-01", end="2000-12-31", freq="1D", seed=None)
1724
1729
1725
1730
1726
1731
def all_index_generator (k = 10 ):
1727
- """Generator which can be iterated over to get instances of all the various
1732
+ """
1733
+ Generator which can be iterated over to get instances of all the various
1728
1734
index classes.
1729
1735
1730
1736
Parameters
@@ -1763,7 +1769,8 @@ def index_subclass_makers_generator():
1763
1769
1764
1770
1765
1771
def all_timeseries_index_generator (k = 10 ):
1766
- """Generator which can be iterated over to get instances of all the classes
1772
+ """
1773
+ Generator which can be iterated over to get instances of all the classes
1767
1774
which represent time-series.
1768
1775
1769
1776
Parameters
@@ -1854,7 +1861,8 @@ def makePeriodFrame(nper=None):
1854
1861
def makeCustomIndex (
1855
1862
nentries , nlevels , prefix = "#" , names = False , ndupe_l = None , idx_type = None
1856
1863
):
1857
- """Create an index/multindex with given dimensions, levels, names, etc'
1864
+ """
1865
+ Create an index/multindex with given dimensions, levels, names, etc'
1858
1866
1859
1867
nentries - number of entries in index
1860
1868
nlevels - number of levels (> 1 produces multindex)
@@ -2144,7 +2152,8 @@ def makeMissingDataframe(density=0.9, random_state=None):
2144
2152
2145
2153
2146
2154
def optional_args (decorator ):
2147
- """allows a decorator to take optional positional and keyword arguments.
2155
+ """
2156
+ allows a decorator to take optional positional and keyword arguments.
2148
2157
Assumes that taking a single, callable, positional argument means that
2149
2158
it is decorating a function, i.e. something like this::
2150
2159
@@ -2216,7 +2225,8 @@ def _get_default_network_errors():
2216
2225
2217
2226
2218
2227
def can_connect (url , error_classes = None ):
2219
- """Try to connect to the given url. True if succeeds, False if IOError
2228
+ """
2229
+ Try to connect to the given url. True if succeeds, False if IOError
2220
2230
raised
2221
2231
2222
2232
Parameters
@@ -2584,7 +2594,8 @@ def use_numexpr(use, min_elements=None):
2584
2594
2585
2595
2586
2596
def test_parallel (num_threads = 2 , kwargs_list = None ):
2587
- """Decorator to run the same function multiple times in parallel.
2597
+ """
2598
+ Decorator to run the same function multiple times in parallel.
2588
2599
2589
2600
Parameters
2590
2601
----------
0 commit comments