Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can supported types (for writing to Excel) be expanded - similar to CSV.write ? #239

Open
Lincoln-Hannah opened this issue Aug 31, 2023 · 0 comments

Comments

@Lincoln-Hannah
Copy link

Lincoln-Hannah commented Aug 31, 2023

CSV.write will convert most datatypes to strings, similar to using x -> "$x"

For example it will print Symbols, Enums and Structs.

Could XLSX.writetable be expanded in a similar way ?

I can apply the following to my DataFrame before writing it to Excel, but it would be nice if the package did it.

mapcols( col -> eltype(col)<: Union{String,Number} ? col : (s->  "$s" ).(col),    my_DataFrame  )
@Lincoln-Hannah Lincoln-Hannah changed the title Doesn't support enums writing to Excel Can supported types (for writing to Excel) be expanded - similar to CSV.write ? Sep 1, 2023
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

No branches or pull requests

1 participant