Skip to content
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

BUG: Inserting a column into an empty frame results into different dtypes #5961

Open
3 tasks done
dchigarev opened this issue Apr 10, 2023 · 0 comments
Open
3 tasks done
Labels
bug 🦗 Something isn't working P2 Minor bugs or low-priority feature requests pandas concordance 🐼 Functionality that does not match pandas

Comments

@dchigarev
Copy link
Collaborator

dchigarev commented Apr 10, 2023

Modin version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest released version of Modin.

  • I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)

Reproducible Example

from modin.pandas.test.utils import create_test_dfs

md_df1, pd_df1 = create_test_dfs({"col1": []})

md_df1["new_col"] = [1, 2]
pd_df1["new_col"] = [1, 2]

print(f"modin dtypes:\n{md_df1.dtypes}\n") # {'col1': object, 'new_col': int64}
print(f"pandas dtypes:\n{pd_df1.dtypes}\n") # {'col1': float64, 'new_col': int64}

print(f"modin's insides:\n{md_df1._to_pandas().dtypes}") # {'col1': object, 'new_col': int64}

Issue Description

Dtypes don't match

Expected Behavior

To match pandas

Error Logs

Replace this line with the error backtrace (if applicable).

Installed Versions

Replace this line with the output of pd.show_versions()

--
Note: this issue is part of an epic #3804

@dchigarev dchigarev added bug 🦗 Something isn't working pandas concordance 🐼 Functionality that does not match pandas P2 Minor bugs or low-priority feature requests labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working P2 Minor bugs or low-priority feature requests pandas concordance 🐼 Functionality that does not match pandas
Projects
None yet
Development

No branches or pull requests

1 participant