I have a dataframe with two columns a and b and at the moment both are looking like column a, but I want to add separators so that column b looks like below. I have tried using the package format.jl. But I haven't gotten the result I'm afte. Maybe worth mentioning is that both columns is Int64 and the column names a and b is of type symbol.
a | b
150000 | 1500,00
27 | 27,00
16614 | 166,14
Is there some other way to solve this than using format.jl? Or is format.jl the way to go?
(Edited to reflect the updated specs in the question)
Note that the
bcolumn will necessarily be aStringafter this change, as integer types cannot store formatting information in them.If you have a lot of data and find that you need better performance, you may also want to use the
InlineStringspackage:This stores the
bcolumn's data as fixed-size strings (String7type here), which are generally treated like normalStrings, but can be significantly better for performance.