jupyter / jupyter/notebook

Strange issue related with wrapping Pandas.qcut() inside a function

Open
#4,430 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

When I wrap pandas.qcut() inside a function in a notebook, I get an error which is not possible to reproduce in python or ipython console in the same env.

Description and codes to reproduce here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproduction and detailed description linked in pandas issue #25446, then compare the notebook behavior with the Python and IPython console behavior described there. Done means the wrapped pandas.qcut() example works consistently in the notebook without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, pandas
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.