Skip to content

fix documentation build error in basics.rst #53398

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

Merged
merged 2 commits into from
May 30, 2023

Conversation

DominikBerger01
Copy link
Contributor

DOC: fix documentation build error in basics.rst based on #53354

building with python make.py --single user_guide/basics.rst
now works without issues

@@ -2121,6 +2121,9 @@ different numeric dtypes will **NOT** be combined. The following example will gi

.. ipython:: python

@suppress
np.random.seed(2358)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is quite right (since the code below should work for all seeds).

A better fix would be to replace the np.random.randn call with something that generates random integers in the range of [0,255] (range of uint8).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your feedback. I'll update the pull request.
Regards,
Dominik

@mroeschke mroeschke added the Docs label May 26, 2023
Copy link
Member

@lithomas1 lithomas1 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the quick fix!

@lithomas1 lithomas1 added this to the 2.0.3 milestone May 26, 2023
@mroeschke mroeschke merged commit db119eb into pandas-dev:main May 30, 2023
@mroeschke
Copy link
Member

Thanks @DominikBerger01

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request May 30, 2023
mroeschke added a commit that referenced this pull request May 30, 2023
…basics.rst) (#53456)

* Backport PR #53398: fix documentation build error in basics.rst

* Update doc/source/user_guide/basics.rst

---------

Co-authored-by: Dominik Berger <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
topper-123 pushed a commit to topper-123/pandas that referenced this pull request Jun 5, 2023
* fix documentation build error in basics.rst

* remove need for seed and gen random np array from range (0,255)
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* fix documentation build error in basics.rst

* remove need for seed and gen random np array from range (0,255)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Error in building documentation
3 participants