Comments (4)
You may want to read through #46072
Do you have any data that backs this up?
Perhaps this could be reverted to help out the majority of analysts/data scientists that just want a convenient tool that works as expected by humans and not an idealistic pure python implementation that exists just to satisfy a textbook.
from pandas.
You may want to read through #46072
Wouldn't it have made more sense to treat timedelta as numeric rather than appending every string in a dataframe upon invoking sum()?
from pandas.
Thanks for raising this issue!
Many IDEs for Jupyter notebooks crash when .sum() is used, which requires the user to restart their Jupyter notebook instance.
Can you provide an example that causes your notebook to crash?
When users see code:
df[["A", "B"]].sum()
I think it's reasonable for them to expect the result contains two rows indexed by "A" and "B". This would not be the case if we used numeric_only=True
as the default: data would be dropped without any indication from the code. On the other hand:
df[["A", "B"]].sum(numeric_only=True)
makes it very clear that columns may be dropped.
In general, I am against the silent dropping of data, and I think that applies here.
from pandas.
Related Issues (20)
- ENH: Should we support aggregating by-frame in DataFrameGroupBy.agg HOT 4
- BUG: Errors when running pandas on development environment HOT 5
- different nan handling in to_json() vs to_dict() HOT 3
- BUG: Pandas Discrepancies in Handling Non-English Data During Memory Optimization
- BUG: OverflowError when JSON serializing a dataframe/series with PeriodArray variable HOT 2
- BUG: Series.plot(kind="pie") does not respect ylabel argument HOT 3
- BUG: qcut returns incorrect results HOT 4
- DISC: path to nullable-by-default integers and floats HOT 3
- BUG: register_dataframe_accessor causes "Untyped class decorator obscures type of class; ignoring decorator" HOT 1
- How do I read and write tabular data? HOT 2
- DEPR: ExcelFile.parse HOT 8
- PERF: Saving many datasets in a single group slows down with each new addition HOT 11
- DOC: Plotting Backend Documentation Incorrect HOT 6
- BUG: Incorrect behaviour when using `loc` on a resampled time index dataframe HOT 4
- BUG:Characters like '/' are being replaced by '_' when importing a CSV file into Python with pandas. HOT 5
- BUG: macOS ARM64 Binary wheels not published for v2.2.2 HOT 1
- BUG: `read_csv()` with `engine="pyarrow"` converts numeric string even when `dtype=str` is specified HOT 2
- BUG: When running the `setup.py` script, a `TypeError` occurs in the `shutil.rmtree()` function due to a generator being passed instead of a valid path. HOT 2
- BUG: `read_csv` breaks on NaNs for dtype=np.float16 HOT 2
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.