question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

perf(pandas): `Alias` executes its children twice

See original GitHub issue

On the Pandas backend, Alias executes the expression it is renaming (and the tree under it) twice

See this notebook

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
cpcloudcommented, Jul 27, 2022

Yep that makes sense. We’ll do a 3.2 release before 4.0 lands.

2reactions
timothydijamcocommented, Jul 27, 2022

thanks! It’s somewhat significant for us. I think I have a fix and can open a PR this week.

I believe this just needs to be changed to return data (data being the second argument) but I’ll check it against the Ibis tests and add a re-execution test https://github.com/ibis-project/ibis/blob/00c83e6912263d58cbf04d7904bc0e96ccb03af0/ibis/backends/pandas/execution/generic.py#L926-L930

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is Pandas DataFrame apply method supposed to execute ...
In Out[5] you can see that the output is twice the input value, which leads me to believe that the function is called...
Read more >
Built-in magic commands — IPython 8.7.0 documentation
IPython filters your input and converts it all into valid Python source before executing it (things like magics or aliases are turned into...
Read more >
pandas: powerful Python data analysis toolkit - PyData |
Installing pandas and the rest of the NumPy and SciPy stack can be a little difficult for inexperienced users.
Read more >
10 Fabulous Python Decorators | by Emmett Boudreau
The do_twice decorator does pretty much what is in its name. This decorator can be used to run a function twice with a...
Read more >
Spark SQL and DataFrames - Spark 2.3.0 Documentation
In the Scala API, DataFrame is simply a type alias of Dataset[Row] . ... a DataFrame as a temporary view allows you to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found