Skip to content

Fixed aliased pandas imports in namespace checker - #67075

Open
tskz48 wants to merge 3 commits into
pandas-dev:mainfrom
tskz48:shiny-new-feature
Open

Fixed aliased pandas imports in namespace checker#67075
tskz48 wants to merge 3 commits into
pandas-dev:mainfrom
tskz48:shiny-new-feature

Conversation

@tskz48

@tskz48 tskz48 commented Aug 29, 2026

Copy link
Copy Markdown
  • closes #xxxx (Replace xxxx with the GitHub issue number)

  • Tests added and passed if fixing a bug or adding a new feature

  • All code checks passed.

  • Added type annotations to new arguments/methods/functions.

  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

  • I have reviewed and followed all the contribution guidelines
    Check exactly one of the following, per the automated contributions policy:

  • I did not use AI to develop this pull request.

  • I used AI to develop this pull request. I prompted it to follow AGENTS.md, I have reviewed and understood every change, and I have described above how I used it and exactly which tool, model version, and effort setting — e.g. claude opus 4.8 (xhigh), not just claude.

@jbrockmendel

Copy link
Copy Markdown
Member

What problem is this fixing?

@github-actions github-actions Bot added the Awaiting Review PR in the maintainers' court; exempt from staleness label Aug 30, 2026
@jbrockmendel jbrockmendel removed the Awaiting Review PR in the maintainers' court; exempt from staleness label Sep 1, 2026
parser.add_argument("paths", nargs="*")
parser.add_argument("--replace", action="store_true")
args = parser.parse_args(argv)
print("ARGS: ", args)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

if node.module is not None and "pandas" in node.module:
self.imported_from_pandas.update(name.name for name in node.names)
self.imported_from_pandas.update(
name.name for name in node.names if name.asname is None

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what bug is this addressing?

@tskz48

tskz48 commented Sep 1, 2026 via email

Copy link
Copy Markdown
Author

@tskz48

tskz48 commented Sep 1, 2026 via email

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants