Skip to content

Add setindex!! support for DataFrames#47

Merged
MasonProtter merged 1 commit intoJuliaFolds2:masterfrom
sunxd3:sunxd/fix-dataframe-setindex
Feb 11, 2026
Merged

Add setindex!! support for DataFrames#47
MasonProtter merged 1 commit intoJuliaFolds2:masterfrom
sunxd3:sunxd/fix-dataframe-setindex

Conversation

@sunxd3
Copy link
Contributor

@sunxd3 sunxd3 commented Feb 10, 2026

Fixes #46.

setindex!!(df, v, row, col) was failing with a MethodError because no possible method existed for _setindex! with DataFrame arguments.

Add a direct setindex!! overload for DataFrame in the DataFrames extension, consistent with how push!! and append!! are handled. The implementation delegates to BangBang.setindex!! on the individual column vector, which handles type widening automatically.

Fixes #46.

setindex!!(df, v, row, col) was failing with a MethodError because no
`possible` method existed for `_setindex!` with DataFrame arguments.

Add a direct setindex!! overload for DataFrame in the DataFrames
extension, consistent with how push!! and append!! are handled.
The implementation delegates to BangBang.setindex!! on the individual
column vector, which handles type widening automatically.
@MasonProtter
Copy link
Member

Thanks!

@MasonProtter MasonProtter merged commit 5353006 into JuliaFolds2:master Feb 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setindex!! on DataFrames

2 participants