Comments (4)
We will skip the test for this at this moment.
from modin.
I am reopening this issue as it needs a permanent fix
from modin.
It seems that this problem is already fixed, at least this reproduced works as expected in the current master:
reproducer
if __name__ == "__main__":
import pandas
import modin.pandas as pd
future_int = {
"A": ["a", "b", "c", "d"],
"B": [0, 1, 2, 3],
"C": [4, 5, 6, 7],
"D": [8, 9, 10, 11],
}
md_df, pd_df = pd.DataFrame(future_int), pandas.DataFrame(future_int)
print("pd dtypes:\n", pd_df.groupby("A").median().dtypes, sep="")
print("md dtypes:\n", md_df.groupby("A").median().dtypes, sep="")
future_float = {
"A": ["a", "b", "b", "d"],
"B": [0, 1, 2, 3],
"C": [4, 5, 6, 7],
"D": [8, 9, 10, 11],
}
md_df, pd_df = pd.DataFrame(future_float), pandas.DataFrame(future_float)
print("\n\npd dtypes:\n", pd_df.groupby("A").median().dtypes, sep="")
print("md dtypes:\n", md_df.groupby("A").median().dtypes, sep="")
Output:
pd dtypes:
B int64
C int64
D int64
dtype: object
md dtypes:
B int64
C int64
D int64
dtype: object
pd dtypes:
B float64
C float64
D float64
dtype: object
md dtypes:
B float64
C float64
D float64
dtype: object
Since for groupby aggregation we use pandas version under the hood and it encapsulates all logic about downcasting dtypes in it, we'll always gonna get same dtypes as pandas gives.
So @devin-petersohn what do you think about closing that issue?
from modin.
Yes, I have standardized the type inference in Modin, so this should be closed.
from modin.
Related Issues (20)
- Fix upload coverage
- Fix HDF tests in CI
- BUG: Calling df._repartition(axis=1) on updated df will raise IndexError HOT 4
- BUG: ValueError: Length of values (3) does not match length of index (3001) HOT 1
- Update github actions
- Add type hints for DataFrame
- Add type hints for modin.pandas.[functions]
- Possibility of `unique` function optimization
- Add extra check for `NPartitions` and `CpuCount` classes
- Change "master" branch to "main"
- Fix ASV after changing default branch: "master" -> "main"
- Recheck that all methods with `numeric_only=True` works correctly
- Implement DataFrame API standard HOT 1
- Update docs on how to enable Modin logs for high-level API and low-level API
- Use custom resources for Ray to schedule a task on a concrete node
- Modin should work correctly with pandas, which uses pyarrow as a backend HOT 1
- BUG: df.melt cannot does not handle duplicate value_vars correctly
- BUG: Falling back to standard Pandas implementation when assigning a dataframe to a columnar selection HOT 1
- Find a way to limit parallelism for tasks running in parallel for different engines
- Wrong dtypes after `merge` op 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 modin.