DataFrame icon indicating copy to clipboard operation
DataFrame copied to clipboard

Locale are not taken in operation such column copy

Open abddany opened this issue 2 years ago • 2 comments

Hi, I changed Locale to FRENCH in NumberUtil Class but it is not taken in copy column (I tried for Double type but I think it is the same for other types).

The only place where it is used is in DataFrame.print function..

abddany avatar Oct 31 '22 00:10 abddany

Hi, the Locale is used to convert numbers to text when printing the value. For what do you need it in a Double column? To print a single column?

nRo avatar Dec 21 '22 09:12 nRo

Hi, Just wanted to convert Double value with "." decimal to "," decimal separator.

DataFrame targetDF = DataFrame.builder().addColumn(df.getColumn("ColName").copy()).build(); ColName is of type DoubleColumn.

When I do targetDF.print(), it works correcty. But with writeCSV() nothing changes. It shows "." as Decimal separator instead of "," even if Locale is set to French.

abddany avatar Dec 21 '22 09:12 abddany