DS-5284-fixes

fixes for visualisations in table header. Percentage threshold is moved from 70 to 60, size of visualisations is decreased, font of percentage values is changed, colours are properly named, so everything works good when theme is switched and describe command processing is refactored  to correctly avoid possible warnings in its text for pandas and polars, also, added bars to histograms with height 0 to get rid of empty space.


Merge-request: IJ-MR-117579
Merged-by: Georgii Zorabov <georgii.zorabov@jetbrains.com>

GitOrigin-RevId: cf9e75fa51d827266c5b63116769bc662cc0d26b
This commit is contained in:
Georgii.Zorabov
2023-10-24 21:33:00 +00:00
committed by intellij-monorepo-bot
parent e14b578819
commit b5ec48e650
3 changed files with 3 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ def exec_table_command(init_command, command_type, start_index, end_index, f_glo
res.append(table_provider.get_value_counts(table))
res.append(NEXT_VALUE_SEPARATOR)
res.append(table_provider.get_value_occurrences_count(table))
res.append(NEXT_VALUE_SEPARATOR)
elif command_type == TableCommandType.SLICE:

View File

@@ -121,7 +121,7 @@ class ColumnVisualisationType:
class ColumnVisualisationUtils:
NUM_BINS = 5
MAX_UNIQUE_VALUES = 3
UNIQUE_VALUES_PERCENT = 70
UNIQUE_VALUES_PERCENT = 60
TABLE_OCCURRENCES_COUNT_NEXT_COLUMN_SEPARATOR = '__pydev_table_occurrences_count_next_column__'
TABLE_OCCURRENCES_COUNT_NEXT_VALUE_SEPARATOR = '__pydev_table_occurrences_count_next_value__'

View File

@@ -77,7 +77,7 @@ class ColumnVisualisationType:
class ColumnVisualisationUtils:
NUM_BINS = 5
MAX_UNIQUE_VALUES = 3
UNIQUE_VALUES_PERCENT = 70
UNIQUE_VALUES_PERCENT = 60
TABLE_OCCURRENCES_COUNT_NEXT_COLUMN_SEPARATOR = '__pydev_table_occurrences_count_next_column__'
TABLE_OCCURRENCES_COUNT_NEXT_VALUE_SEPARATOR = '__pydev_table_occurrences_count_next_value__'