Skip to content

Commit 81f64df

Browse files
committed
default_index accepts additional keyword arguments
1 parent 5685381 commit 81f64df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexes/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5087,6 +5087,6 @@ def _validate_join_method(method):
50875087
raise ValueError('do not recognize join method %s' % method)
50885088

50895089

5090-
def default_index(n):
5090+
def default_index(n, **kwargs):
50915091
from pandas.core.index import RangeIndex
5092-
return RangeIndex(0, n, name=None)
5092+
return RangeIndex(0, n, **kwargs)

0 commit comments

Comments
 (0)