diff --git a/python/helpers/pydev/_pydevd_bundle/tables/pydevd_pandas.py b/python/helpers/pydev/_pydevd_bundle/tables/pydevd_pandas.py index 1a186aa41842..b4e0245b9635 100644 --- a/python/helpers/pydev/_pydevd_bundle/tables/pydevd_pandas.py +++ b/python/helpers/pydev/_pydevd_bundle/tables/pydevd_pandas.py @@ -194,7 +194,7 @@ def analyze_numeric_column(column): else: format_function = lambda x: round(x, 1) - # so {} — {} will be correctly viewed both on Mac and Windows + # so the long dash will be correctly viewed both on Mac and Windows bin_labels = ['{} \u2014 {}'.format(format_function(bin_edges[i]), format_function(bin_edges[i+1])) for i in range(ColumnVisualisationUtils.NUM_BINS)] bin_count_dict = {label: count for label, count in zip(bin_labels, counts)} res = bin_count_dict diff --git a/python/helpers/pydev/_pydevd_bundle/tables/pydevd_polars.py b/python/helpers/pydev/_pydevd_bundle/tables/pydevd_polars.py index 65cbdf4d15ea..d2acc45967b9 100644 --- a/python/helpers/pydev/_pydevd_bundle/tables/pydevd_polars.py +++ b/python/helpers/pydev/_pydevd_bundle/tables/pydevd_polars.py @@ -160,7 +160,7 @@ def analyze_numeric_column(column, col_name): counts, bin_edges = np.histogram(column, bins=ColumnVisualisationUtils.NUM_BINS) format_function = int if column.is_integer() else lambda x: round(x, 1) - # so {} — {} will be correctly viewed both on Mac and Windows + # so the long dash will be correctly viewed both on Mac and Windows bin_labels = ['{} \u2014 {}'.format(format_function(bin_edges[i]), format_function(bin_edges[i + 1])) for i in range(ColumnVisualisationUtils.NUM_BINS)] res = add_custom_key_value_separator(zip(bin_labels, counts)) else: