FormatException when converting pandas.DataFrame to iterable quotes
#1164
masoudaz89
started this conversation in
Help and support
Replies: 3 comments 29 replies
|
Can you share a bit more about your setups that led to this error? Ideally, a code snippet of how you're converting to iterable Quotes? Here's an example, if helpful: Williams Fractal with DataFrames conversion More info to consider: |
19 replies
|
Right now we’re using this string converter: Maybe what we can do here is have this failover to try a second method to make it more resilient when user environments don’t match source quote formats. It’d still take the local culture first, but then try a more standard one return CsDecimal.Parse(str(decimal), AllowDecimalPoint) |
6 replies
|
@DaveSkender
How do you think? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
FormatException: The input string '42.84749984741211' was not in a correct format.
at System.Number.ThrowFormatException[TChar](ReadOnlySpan
1 value) at System.Number.ParseDecimal[TChar](ReadOnlySpan1 value, NumberStyles styles, NumberFormatInfo info)at System.Decimal.Parse(String s)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
All reactions