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

Optionalvalue ignores culture #544

Open
jim108dev opened this issue Feb 3, 2022 · 0 comments
Open

Optionalvalue ignores culture #544

jim108dev opened this issue Feb 3, 2022 · 0 comments

Comments

@jim108dev
Copy link

For example

#r "nuget: Deedle"

open Deedle
open System.IO
open System

type Person = 
    { Name:string; Age:float; Bmi: OptionalValue<float>}
  
let peopleRecds = [ { Name = "Joe"; Age = 0.3372643363809795; Bmi = OptionalValue 0.3372643363809795 }]

let df = Frame.ofRecords peopleRecds

[<Literal>]
let outputPath = __SOURCE_DIRECTORY__ + "/data/output/"

[<Literal>]
let separator = ';'

let culture = Globalization.CultureInfo("de-DE")

df.SaveCsv(Path.Combine(outputPath, "foo.csv"), includeRowKeys = false, separator = ';',culture = culture)

results in

Name;Age;Bmi
Joe;"0,3372643363809795";0.3372643363809795
@jim108dev jim108dev changed the title OptoinalValue ignores culture Optionalvalue ignores culture Feb 3, 2022
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