diff --git a/pptx_template/__init__.py b/pptx_template/__init__.py index 0d6aff1..c0a052a 100644 --- a/pptx_template/__init__.py +++ b/pptx_template/__init__.py @@ -1,3 +1,3 @@ # # coding=utf-8 -__version__ = '0.2.7' +__version__ = '0.2.8' diff --git a/pptx_template/chart.py b/pptx_template/chart.py index b6e5bdb..dd93bec 100644 --- a/pptx_template/chart.py +++ b/pptx_template/chart.py @@ -45,9 +45,9 @@ def _build_xy_chart_data(csv, xy_transpose, number_format): xy_col = csv.iloc[:, [0, i]] for (_, row) in xy_col.iterrows(): if xy_transpose: - x, y = _nan_to_none(row[0]), _nan_to_none(row[1]) - else: y, x = _nan_to_none(row[0]), _nan_to_none(row[1]) + else: + x, y = _nan_to_none(row[0]), _nan_to_none(row[1]) log.debug(u" Adding xy %s,%s" % (x, y)) series.add_data_point(x, y) return chart_data