Skip to content

DOC: User Guide - enhancing performance - using ndarray #28167

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
iwpnd opened this issue Aug 27, 2019 · 1 comment
Closed

DOC: User Guide - enhancing performance - using ndarray #28167

iwpnd opened this issue Aug 27, 2019 · 1 comment
Labels

Comments

@iwpnd
Copy link

iwpnd commented Aug 27, 2019

In [11]: %prun -l 4 apply_integrate_f(df['a'].to_numpy(),
   ....:                              df['b'].to_numpy(),
   ....:                              df['N'].to_numpy())
   ....: 
  File "<ipython-input-11-613f5c6ec02d>", line 2
    df['b'].to_numpy(),
    ^
IndentationError: unexpected indent

Problem description

Code example in documentation for enhancing performance is erroneous. Shows intendation error instead of %prun timing.

Expected Output

Expected to see %prun timing.

@datapythonista datapythonista changed the title Documentation: User Guide - enhancing performance - using ndarray DOC: User Guide - enhancing performance - using ndarray Aug 27, 2019
@datapythonista
Copy link
Member

This is already fixed in master, was taken care of in #28029

You can see the latest docs in: https://dev.pandas.io/user_guide/enhancingperf.html#using-ndarray

If you see anything wrong there, please let me know, and I'll reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants