-
Notifications
You must be signed in to change notification settings - Fork 358
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
Fix to delegate dtypes. #2061
Fix to delegate dtypes. #2061
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2061 +/- ##
==========================================
- Coverage 94.68% 93.89% -0.80%
==========================================
Files 55 55
Lines 11718 11755 +37
==========================================
- Hits 11095 11037 -58
- Misses 623 718 +95
Continue to review full report at Codecov.
|
@@ -2715,7 +2713,9 @@ def add_prefix(self, prefix) -> "Series": | |||
] | |||
+ internal.data_spark_columns | |||
) | |||
return first_series(DataFrame(internal.with_new_sdf(sdf))) | |||
return first_series( | |||
DataFrame(internal.with_new_sdf(sdf, index_dtypes=([None] * internal.index_level))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we pass object
s as index_dtypes
directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we pass None
, the dtype will be inferred during the initialization of InternalFrame
.
I'm wondering if we wanted to call out |
Looks great! Left some questions. Thank you! |
Thanks! let me merge this now. Please feel free to leave comments later if any. |
Fixes to delegate dtypes properly.
The parameter
preserve_dtypes
for the workaround was removed.Also maked as
TODO
where the dtypes are unknown.