perf(pandas): `Alias` executes its children twice
See original GitHub issueOn the Pandas backend, Alias
executes the expression it is renaming (and the tree under it) twice
See this notebook
Issue Analytics
- State:
- Created a year ago
- Comments:11 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep that makes sense. We’ll do a 3.2 release before 4.0 lands.
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