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

Locale are not taken in operation such column copy #30

Open
abddany opened this issue Oct 31, 2022 · 2 comments
Open

Locale are not taken in operation such column copy #30

abddany opened this issue Oct 31, 2022 · 2 comments

Comments

@abddany
Copy link

abddany commented Oct 31, 2022

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..

@nRo
Copy link
Owner

nRo commented Dec 21, 2022

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?

@abddany
Copy link
Author

abddany commented Dec 21, 2022

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.

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

2 participants