Skip to content
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

DOC: correct an example in v0.14.0.rst to fix "NameError" #55182

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

natmokval
Copy link
Contributor

while building whatsnew/v0.14.0.rst the error occurs:

----> 1 g[['B']].head(1)

NameError: name 'g' is not defined

corrected the example to fix the error.

@natmokval natmokval marked this pull request as ready for review September 18, 2023 17:30
@natmokval
Copy link
Contributor Author

@rhshadrach, could you please take a look at this PR?

@natmokval natmokval added the Docs label Sep 18, 2023
Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

lgtm; I'm not seeing this fail on any recent PRs, so not sure why you're seeing this error. g is defined in an .. ipython:: python block above.

Still, without this the docs have the wrong output because of the change to a .. code-block:: immediately above - so nice find!

@rhshadrach rhshadrach added this to the 2.2 milestone Sep 18, 2023
@rhshadrach rhshadrach merged commit 6826845 into pandas-dev:main Sep 18, 2023
11 checks passed
@rhshadrach
Copy link
Member

Thanks @natmokval

@natmokval
Copy link
Contributor Author

Thanks @rhshadrach for reviewing this PR.

hedeershowk pushed a commit to hedeershowk/pandas that referenced this pull request Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants