We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
normalizenames
I often find myself doing:
df = DataFrame(XLSX.readtable("myfile.xlsx", 1)) # Realize column names are whacky using CSV rename!(df, CSV.normalizenames(names(df)))
Which isn't too much hassle but I was wondering whether we should just copy over those seven lines:
normalizename(name::Symbol) = name function normalizename(name::String)::Symbol uname = strip(Unicode.normalize(name)) id = Base.isidentifier(uname) ? uname : map(c->Base.is_id_char(c) ? c : '_', uname) cleansed = string((isempty(id) || !Base.is_id_start_char(id[1]) || id in RESERVED) ? "_" : "", id) return Symbol(replace(cleansed, r"(_)\1+"=>"_")) end
to somewhere in XLSX.jl and expose a keyword?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I often find myself doing:
Which isn't too much hassle but I was wondering whether we should just copy over those seven lines:
to somewhere in XLSX.jl and expose a keyword?
The text was updated successfully, but these errors were encountered: