- Notifications
You must be signed in to change notification settings - Fork48
Add df data and tz type columns back into the same loc after type con…#150
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Tishj left a comment
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.
Thanks LGTM
paultiq commentedOct 31, 2025
Why not just staticvoidReplaceDFColumn(PandasDataFrame&df,constchar*col_name,idx_tidx,constpy::handle&new_value) {df.attr("__setitem__")(col_name,new_value);} * This is same as used in FrameFromNumpy. In Python, we wouldn't perform two operations to replace a column (drop then insert in position). We'd just set it: ... As a general rule, explicit "inplace" params in Pandas is something to avoid. Seehttps://pandas.pydata.org/pdeps/0008-inplace-methods-in-pandas.html for a longer discussion of if. |
3016156 toe991b2aComparefd1c34f intoduckdb:v1.4-andiumUh oh!
There was an error while loading.Please reload this page.
…version
fixes#120