-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
version 0.23: RangeIndex argument order changed, docs stale #22373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mikapfl : Good catch! Feel free to update the documentation. Marking for |
@gfyoung: First time contributing to pandas, I hope my changes look good. I split it up into many patches, only the first two are needed to fix this specific bug if you want a minimal changeset for |
jbrockmendel
added a commit
to jbrockmendel/pandas
that referenced
this issue
Sep 24, 2020
jbrockmendel
added a commit
that referenced
this issue
Sep 28, 2020
kesmit13
pushed a commit
to kesmit13/pandas
that referenced
this issue
Nov 2, 2020
* docstring fixups, closes pandas-dev#26982 * update RangeIndex docstring, closes pandas-dev#22373 * CLN: misc * CLN: update Makefil * update nat docstrings to match * revert controversial
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
Documentation of RangeIndex states that it has the arguments
start
,stop
,step
,name
andcopy
. However, the actual signature isRangeIndex(start=None, stop=None, step=None, dtype=None, copy=False, name=None, fastpath=False)
, which hasdtype
as fourth argument. This breaks scripts that relied on the fourth argument being the name, which used to be the case:Expected Output
Either revert to the old argument order or at least update the documentation.
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.7.0.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.140-62-default
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: de_DE.UTF-8
LOCALE: de_DE.UTF-8
pandas: 0.23.4
pytest: None
pip: 10.0.1
setuptools: 40.0.0
Cython: None
numpy: 1.15.0
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.7
feather: None
matplotlib: 2.2.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: