From e1026ad8ae7044dbe3ff5ea41a91ecf276e532bd Mon Sep 17 00:00:00 2001 From: "Georgii.Zorabov" Date: Tue, 28 Nov 2023 15:13:58 +0000 Subject: [PATCH] [tables] removed non-ascii symbol in comment in pydevd_polars.py and pydevd_pandas.py Merge-request: IJ-MR-120966 Merged-by: Georgii Zorabov GitOrigin-RevId: 810815417b3ae59ff70a201773f3231e2a8e5c5f --- python/helpers/pydev/_pydevd_bundle/tables/pydevd_pandas.py | 2 +- python/helpers/pydev/_pydevd_bundle/tables/pydevd_polars.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: