FormatException
when converting pandas.DataFrame to iterable quotes
#1164
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: |
Beta Was this translation helpful? Give feedback.
-
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) |
Beta Was this translation helpful? Give feedback.
-
@DaveSkender
How do you think? |
Beta Was this translation helpful? Give feedback.
-
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](ReadOnlySpan
1 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)
Beta Was this translation helpful? Give feedback.
All reactions