Coder Social home page Coder Social logo

Comments (4)

rhshadrach avatar rhshadrach commented on June 15, 2024

Thanks for the report. You checked the box I have confirmed this bug exists on the main branch of pandas. I am seeing the following output on main:

print(df.groupby(by=["col1", "col1", "col2"], as_index=False).agg(new_col=pd.NamedAgg('col1', min), new_col1=pd.NamedAgg('col1', max), new_col2=('col2', 'count')))
#    col1  col2  new_col  new_col1  new_col2
# 0     0     5        0         0         1
# 1     0     7        0         0         1
# 2     1     5        1         1         1
# 3     1    36        1         1         1
# 4     2     4        2         2         2

Can you confirm if you are seeing an error or the above output on main?

from pandas.

sfc-gh-rdurrani avatar sfc-gh-rdurrani commented on June 15, 2024

I can't seem to install pandas from source - I keep getting the following error:

ModuleNotFoundError: No module named 'pandas._libs.pandas_parser'

but I did notice that the bug is happening on the latest version of pandas - 2.2.2.

from pandas.

VISWESWARAN1998 avatar VISWESWARAN1998 commented on June 15, 2024

@sfc-gh-rdurrani Your code runs fine without any errors in main branch for me.

I can't seem to install pandas from source - I keep getting the following error:

ModuleNotFoundError: No module named 'pandas._libs.pandas_parser'

but I did notice that the bug is happening on the latest version of pandas - 2.2.2.

Try creating an isolated environment using mamba (recommended) or pip, install the requirements in requirements-dev.txt and try installing pandas from source. More information here: https://pandas.pydata.org/docs/dev/development/contributing_environment.html

from pandas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.