-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pd.DataFrame don't always return the same dtype as in pandas #4060
Labels
bug 🦗
Something isn't working
External
Pull requests and issues from people who do not regularly contribute to modin
P2
Minor bugs or low-priority feature requests
pandas concordance 🐼
Functionality that does not match pandas
Comments
mvashishtha
added
bug 🦗
Something isn't working
pandas concordance 🐼
Functionality that does not match pandas
labels
Jan 27, 2022
@c3-cjazra Thank you for reporting this issue! I've massaged your code snippets a little to reproduce each issue. The first is: import modin.pandas as pd
import pandas
df_modin = pd.DataFrame({"b": pd.Series([], dtype='bool'),
"a": pd.Series([], dtype='int64')
}, index=[])
df_pandas = pandas.DataFrame({"b": pandas.Series([], dtype='bool'),
"a": pandas.Series([], dtype='int64')
}, index=[])
print(df_pandas.dtypes)
print(df_modin.dtypes) And the second snippet: import modin.pandas as pd
import pandas
json ='{"schema":{"fields":[{"name":"index","type":"string"},{"name":"b","type":"boolean"},{"name":"a","type":"integer"}],"primaryKey":["index"],"pandas_version":"0.20.0"},"data":[]}'
df_modin = pd.read_json(json, orient='table')
df_pandas = pandas.read_json(json, orient='table')
assert df_pandas.dtypes.equals(df_modin.dtypes)
print(df_pandas.dtypes)
print(df_modin._to_pandas().dtypes) |
8 tasks
mvashishtha
pushed a commit
to mvashishtha/modin
that referenced
this issue
Jan 28, 2022
Signed-off-by: mvashishtha <[email protected]>
This was referenced Jun 28, 2022
anmyachev
added
the
External
Pull requests and issues from people who do not regularly contribute to modin
label
Apr 19, 2023
The problem is fixed on the current master - 947e06b. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug 🦗
Something isn't working
External
Pull requests and issues from people who do not regularly contribute to modin
P2
Minor bugs or low-priority feature requests
pandas concordance 🐼
Functionality that does not match pandas
System information
modin 0.12.0
Ray 1.7.1
python 3.9.7
Describe the problem
also
_to_pandas()
seems to modify the dtypes toobject
. For exmapleThe text was updated successfully, but these errors were encountered: