Skip to content

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

Closed
@iwpnd

Description

@iwpnd
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions