Skip to content

Commit

Permalink
Merge pull request #70 from TidierOrg/rdboyes-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Karandeep Singh committed Dec 15, 2023
2 parents 2f7c9f2 + 0b68510 commit ee49f0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/separate_unite.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function safe_getindex(arr, index, default_value="")
end
end

function separate(df::DataFrame, col::Symbol, into::Vector{Symbol}, sep::String)
function separate(df::DataFrame, col::Symbol, into::Vector{Symbol}, sep::Union{Regex, String})
new_df = df[:, :]
new_cols = map(x -> split(x, sep), new_df[:, col])
max_cols = maximum(length.(new_cols))
Expand Down Expand Up @@ -81,4 +81,4 @@ macro unite(df, new_col, from_cols, sep)
return quote
unite($(esc(df)), $new_col_quoted, $(from_cols_expr), $(esc(sep)))
end
end
end

0 comments on commit ee49f0b

Please sign in to comment.