We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b092100 commit e9c10eeCopy full SHA for e9c10ee
xlsxwriter/chart.py
@@ -872,8 +872,9 @@ def _get_data_type(self, data):
872
if token is None:
873
continue
874
875
- # Check for strings like '1.1_1' which would evaluate to float.
876
- if type(token) == str and '_' in token:
+ # Check for strings that would evaluate to float like
+ #'1.1_1' of ' 1'.
877
+ if type(token) == str and re.search('[_ ]', token):
878
# Assume entire data series is string data.
879
return 'str'
880
0 commit comments