Closed rafalsza closed 4 months ago
Checkout this recent discussions
If it doesn't help you resolve your problem, please export your DataFrame data using .to_csv, and then upload it here without altering it, so we can inspect it for data compatibility issues.
df.to_csv('quotes.csv', index=False)
Hi, @rafalsza. Thank you for detail report.
I suspect the culprit is CultureInfo
when parsing decimal string to C# Decimal object. We currently don't set CultureInfo
explicitly, which means your local culture info is being used.
So could you share the result from the code below. I need a test about it.
from stock_indicators import indicators
from System.Globalization import CultureInfo
print(CultureInfo.CurrentCulture)
quotes.csv uploaded csv
Try adding locale.setlocale(locale.LC_ALL, 'C')
before you convert from df
Quotes provided don’t seem to be an issue. Works for me. Try to replicate: https://replit.com/@daveskender/Stock-Indicators-for-Python-Quotes-Issue-348
@LeeDongGeon1996 do we know if this is actually the issue, using decimal points instead of commas when locale
settings don't like the way quotes are formatted? @rafalsza have you tried either 1) reformatting quotes to be compatible or 2) changing your locale
environment settings (in your wrapper code)?
@rafalsza give v1.2.1 a try and see if it helps you resolve this issue. Feedback appreciated.
@rafalsza give v1.2.1 a try and see if it helps you resolve this issue. Feedback appreciated.
yes, it works now, thank you
The problem
A clear and concise description of the bug. If known, explain why you believe the problem is within this library.
Error message(s):
To Reproduce