Comments (4)
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.
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.
@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)
- BUG: pytest fails for conda editable installation in Mac HOT 3
- BUG: NonExistentTimeError with resample("7D"), but only when DST day is not part of the date range HOT 2
- BUG: pandas.Grouper should not accept args and kwargs and should have permanent arguments HOT 1
- PERF: df.unstack() is 500 times slower since pandas>=2.1 HOT 5
- BUG: Losing information when handling of `NoneType`s in `pd.json_normalize` HOT 2
- BUG: `pd.infer_freq` incompatible with `Series["timestamp[s][pyarrow]"]`.
- BUILD: Pandas 2.1.1 DLL load failed HOT 2
- ENH: Add index_col parameter to the Dataframe constructor HOT 1
- BUG: not reproducible error `FloatingPointError: overflow encountered in multiply` in the following sequence: read_csv followed by to_datetime with pandas version 2.2.2 HOT 3
- BUG: Assigning datetime to pa.date32() type array should raise HOT 1
- BUG: `pd.concat` does not maintain `timestamp[s][pyarrow]` index type. (`MultiIndex`)
- BUG: Typing: pd.ExcelWriter cannot accept an io.BytesIO instance as first arg
- BUG: pyarrow listaccessor does not preserve indexes HOT 1
- BUG: np.bool_(False) & pd.NA gives pd.NA HOT 2
- BUG: Adding two series with pd.Series.add can change the dtype in unexpected ways. HOT 1
- DOC/BUG: 'See Also' section in Index.item error HOT 2
- BUG: GroupByRolling duplicates MultiIndex levels, which prevents assignment on parent HOT 1
- Potential regression induced by REF: use maybe_convert_objects in pd.array
- BUG: `read_html` does not properly structure some html table elements (possible `rowspan` or `colspan` issues) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas.