dataframe-textual 2.41.0__tar.gz → 2.41.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/PKG-INFO +1 -1
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/pyproject.toml +1 -1
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/data_frame_table.py +12 -3
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/table_screen.py +26 -2
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/uv.lock +1 -1
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/.gitignore +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/LICENSE +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/README.md +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/main.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/__init__.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/__main__.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/common.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/data_frame_help_panel.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/data_frame_viewer.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/file_picker_screen.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/loading_screen.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/theme_screen.py +0 -0
- {dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/yes_no_screen.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dataframe-textual
|
|
3
|
-
Version: 2.41.
|
|
3
|
+
Version: 2.41.1
|
|
4
4
|
Summary: Interactive terminal viewer/editor for tabular data
|
|
5
5
|
Project-URL: Homepage, https://github.com/need47/dataframe-textual
|
|
6
6
|
Project-URL: Repository, https://github.com/need47/dataframe-textual.git
|
{dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/data_frame_table.py
RENAMED
|
@@ -1868,9 +1868,18 @@ class DataFrameTable(DataTable):
|
|
|
1868
1868
|
"""Open a modal screen to view the selected cell's details."""
|
|
1869
1869
|
ridx = self.cursor_ridx
|
|
1870
1870
|
cidx = self.cursor_cidx
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1871
|
+
dtype = self.df.dtypes[cidx]
|
|
1872
|
+
cell_value = self.df.item(ridx, cidx)
|
|
1873
|
+
|
|
1874
|
+
# Only show cell detail screen if the value is a non-empty list, non-empty dict,
|
|
1875
|
+
# or string containing the delimiter (indicating a potential list of values).
|
|
1876
|
+
# This prevents unnecessary screens for simple scalar values.
|
|
1877
|
+
if (
|
|
1878
|
+
(dtype == pl.List and not cell_value.is_empty())
|
|
1879
|
+
or (dtype == pl.Struct and cell_value)
|
|
1880
|
+
or (dtype == pl.String and "|" in cell_value)
|
|
1881
|
+
):
|
|
1882
|
+
self.app.push_screen(CellDetailScreen(self.df, ridx, cidx))
|
|
1874
1883
|
|
|
1875
1884
|
def do_show_frequency(self, cidx: int | None = None) -> None:
|
|
1876
1885
|
"""Show frequency distribution for a given columnn."""
|
|
@@ -302,7 +302,20 @@ class RowDetailScreen(TableScreen):
|
|
|
302
302
|
self.show_statistics(self.get_cidx_name_value())
|
|
303
303
|
event.stop()
|
|
304
304
|
elif event.key == "tab":
|
|
305
|
-
|
|
305
|
+
ridx = self.ridx
|
|
306
|
+
cidx = self.table.cursor_row
|
|
307
|
+
dtype = self.dftable.df.dtypes[cidx]
|
|
308
|
+
cell_value = self.dftable.df.item(ridx, cidx)
|
|
309
|
+
|
|
310
|
+
# Only show cell detail screen if the value is a non-empty list, non-empty dict,
|
|
311
|
+
# or string containing the delimiter (indicating a potential list of values).
|
|
312
|
+
# This prevents unnecessary screens for simple scalar values.
|
|
313
|
+
if (
|
|
314
|
+
(dtype == pl.List and not cell_value.is_empty())
|
|
315
|
+
or (dtype == pl.Struct and cell_value)
|
|
316
|
+
or (dtype == pl.String and "|" in cell_value)
|
|
317
|
+
):
|
|
318
|
+
self.app.push_screen(CellDetailScreen(self.dftable.df, ridx, cidx))
|
|
306
319
|
event.stop()
|
|
307
320
|
|
|
308
321
|
def get_cidx_name_value(self) -> tuple[int, str, Any] | None:
|
|
@@ -869,5 +882,16 @@ class CellDetailScreen(TableScreen):
|
|
|
869
882
|
if event.key == "tab":
|
|
870
883
|
cidx = self.table.cursor_column
|
|
871
884
|
ridx = self.table.cursor_row
|
|
872
|
-
self.
|
|
885
|
+
dtype = self.df.dtypes[cidx]
|
|
886
|
+
cell_value = self.df.item(ridx, cidx)
|
|
887
|
+
|
|
888
|
+
# Only show cell detail screen if the value is a non-empty list, non-empty dict,
|
|
889
|
+
# or string containing the delimiter (indicating a potential list of values).
|
|
890
|
+
# This prevents unnecessary screens for simple scalar values.
|
|
891
|
+
if (
|
|
892
|
+
(dtype == pl.List and not cell_value.is_empty())
|
|
893
|
+
or (dtype == pl.Struct and cell_value)
|
|
894
|
+
or (dtype == pl.String and "|" in cell_value)
|
|
895
|
+
):
|
|
896
|
+
self.app.push_screen(CellDetailScreen(self.df, ridx, cidx))
|
|
873
897
|
event.stop()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/data_frame_help_panel.py
RENAMED
|
File without changes
|
{dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/data_frame_viewer.py
RENAMED
|
File without changes
|
{dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/file_picker_screen.py
RENAMED
|
File without changes
|
{dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/loading_screen.py
RENAMED
|
File without changes
|
|
File without changes
|
{dataframe_textual-2.41.0 → dataframe_textual-2.41.1}/src/dataframe_textual/yes_no_screen.py
RENAMED
|
File without changes
|