Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged

Conversation

@evertlammerts
Copy link
Collaborator

…version

fixes#120

Copy link
Collaborator

@TishjTishj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks LGTM

@paultiq
Copy link
Contributor

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:df["mycol"] = ...., which preserves position.

... 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.

@evertlammertsevertlammerts merged commitfd1c34f intoduckdb:v1.4-andiumOct 31, 2025
1 check passed
@evertlammertsevertlammerts deleted the arrow_col_fix branchOctober 31, 2025 13:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@TishjTishjTishj approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@evertlammerts@paultiq@Tishj

[8]ページ先頭

©2009-2025 Movatter.jp