Skip to content

DOC: error in 0.23.0 concat sort warning? #21101

Closed
@adbull

Description

@adbull

Problem description

Pandas 0.23.0 adds a new warning when calling concat with misaligned axes (#20613):

FutureWarning: Sorting because non-concatenation axis is not aligned. A future version
of pandas will change to not sort by default.

To accept the future behavior, pass 'sort=True'.

To retain the current behavior and silence the warning, pass sort=False

This seems strange; I'd assume that sort=True would give the current behaviour, and sort=False the future behaviour, as in the docs for concat:

Explicitly pass sort=True to silence the warning and sort. Explicitly pass
sort=False to silence the warning and not sort.

I'm assuming the docs are right and the warning is wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BlockerBlocking issue or pull request for an upcoming releaseDocsError ReportingIncorrect or improved errors from pandasgood first issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions