You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Messytables should guess decimals correctly respecting the locale configuration.
For example: In germany the , is used as decimal dot but a value 1,200 is guessed as type "text".
This issue was initially reported as ckan issue ckan/ckan#5769 where I recognized it.
Describe the bug
Messytables should guess decimals correctly respecting the locale configuration.
For example: In germany the
,
is used as decimal dot but a value1,200
is guessed as type "text".This issue was initially reported as ckan issue ckan/ckan#5769 where I recognized it.
The type guessing seems to happen here: https://github.com/okfn/messytables/blob/51b736892a48e420ab313675f54901c77b446dec/messytables/types.py
and seems to happen locale specific. (I think the magic happens in line 100:
value = locale.atof(value)
Unfortunately python seems to recognizes a dot as decimal point even if a german locale is set, which I could reproduce in my local environment:
The text was updated successfully, but these errors were encountered: