Skip to content

[#16737] Index type for Series with empty data #32053

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

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed linting
  • Loading branch information
SaturnFromTitan committed Apr 20, 2020
commit a1f90683d2a9d8947c61006c99dc89f62df7db64
6 changes: 3 additions & 3 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ def __init__(
if n == 0:
# gh-16737
warnings.warn(
"The default index type for empty data will be 'Index'"
" instead of 'RangeIndex' in a future version."
" Specify an index explicitly to silence this warning.",
"The default index type for empty data will be 'Index' "
"instead of 'RangeIndex' in a future version. "
"Specify an index explicitly to silence this warning.",
DeprecationWarning,
stacklevel=2,
)
Expand Down