dataframe-textual 2.6.0__py3-none-any.whl → 2.6.2__py3-none-any.whl
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/data_frame_table.py +12 -12
- {dataframe_textual-2.6.0.dist-info → dataframe_textual-2.6.2.dist-info}/METADATA +1 -1
- {dataframe_textual-2.6.0.dist-info → dataframe_textual-2.6.2.dist-info}/RECORD +6 -6
- {dataframe_textual-2.6.0.dist-info → dataframe_textual-2.6.2.dist-info}/WHEEL +0 -0
- {dataframe_textual-2.6.0.dist-info → dataframe_textual-2.6.2.dist-info}/entry_points.txt +0 -0
- {dataframe_textual-2.6.0.dist-info → dataframe_textual-2.6.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1755,13 +1755,14 @@ class DataFrameTable(DataTable):
|
|
|
1755
1755
|
max_width = label_width
|
|
1756
1756
|
|
|
1757
1757
|
# Scan through all loaded rows that are visible to find max width
|
|
1758
|
-
for
|
|
1759
|
-
|
|
1760
|
-
|
|
1758
|
+
for row_start, row_end in self.loaded_ranges:
|
|
1759
|
+
for row_idx in range(row_start, row_end):
|
|
1760
|
+
cell_value = str(self.df.item(row_idx, col_idx))
|
|
1761
|
+
cell_width = measure(self.app.console, cell_value, 1)
|
|
1761
1762
|
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1763
|
+
if cell_width > max_width:
|
|
1764
|
+
need_expand = True
|
|
1765
|
+
max_width = cell_width
|
|
1765
1766
|
|
|
1766
1767
|
if not need_expand:
|
|
1767
1768
|
return
|
|
@@ -2198,9 +2199,8 @@ class DataFrameTable(DataTable):
|
|
|
2198
2199
|
|
|
2199
2200
|
# Also update the view if applicable
|
|
2200
2201
|
if self.df_view is not None:
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
)
|
|
2202
|
+
lf_updated = self.df.lazy().select(RID, pl.col(col_name))
|
|
2203
|
+
self.df_view = self.df_view.lazy().update(lf_updated, on=RID, include_nulls=True).collect()
|
|
2204
2204
|
|
|
2205
2205
|
# Recreate table for display
|
|
2206
2206
|
self.setup_table()
|
|
@@ -2997,10 +2997,10 @@ class DataFrameTable(DataTable):
|
|
|
2997
2997
|
# self.notify("No selections to clear", title="Clear Selections and Matches", severity="warning")
|
|
2998
2998
|
return
|
|
2999
2999
|
|
|
3000
|
-
row_count = len(self.selected_rows | set(self.matches.keys()))
|
|
3000
|
+
# row_count = len(self.selected_rows | set(self.matches.keys()))
|
|
3001
3001
|
|
|
3002
3002
|
# Add to history
|
|
3003
|
-
self.add_history("Cleared all
|
|
3003
|
+
self.add_history("Cleared all selections and matches")
|
|
3004
3004
|
|
|
3005
3005
|
# Clear all selections
|
|
3006
3006
|
self.selected_rows = set()
|
|
@@ -3009,7 +3009,7 @@ class DataFrameTable(DataTable):
|
|
|
3009
3009
|
# Recreate table for display
|
|
3010
3010
|
self.setup_table()
|
|
3011
3011
|
|
|
3012
|
-
self.notify(f"Cleared selections for [$success]{row_count}[/] rows", title="Clear Selections and Matches")
|
|
3012
|
+
# self.notify(f"Cleared selections for [$success]{row_count}[/] rows", title="Clear Selections and Matches")
|
|
3013
3013
|
|
|
3014
3014
|
# Find & Replace
|
|
3015
3015
|
def find_matches(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dataframe-textual
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.2
|
|
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
|
|
@@ -2,13 +2,13 @@ dataframe_textual/__init__.py,sha256=E53fW1spQRA4jW9grxSqPEmoe9zofzr6twdveMbt_W8
|
|
|
2
2
|
dataframe_textual/__main__.py,sha256=xXeUA2EqVhufPkTbvv6MOCt3_ESHBH3PsCE--07a0ww,3613
|
|
3
3
|
dataframe_textual/common.py,sha256=WwCUnG5MReUz6yfjHPL1mrwgDddCCJmIbqk_hrRduYU,28461
|
|
4
4
|
dataframe_textual/data_frame_help_panel.py,sha256=UEtj64XsVRdtLzuwOaITfoEQUkAfwFuvpr5Npip5WHs,3381
|
|
5
|
-
dataframe_textual/data_frame_table.py,sha256=
|
|
5
|
+
dataframe_textual/data_frame_table.py,sha256=IjsFc7aJJMAhfdf-898cTCMeDBvtnnDeRRV4cIdZQXY,147806
|
|
6
6
|
dataframe_textual/data_frame_viewer.py,sha256=_VwbCcRBgdTcrZmgS2mRwIJ-cFxOeJ55twDFvQUHMfk,28723
|
|
7
7
|
dataframe_textual/sql_screen.py,sha256=P3j1Fv45NIKEYo9adb7NPod54FaU-djFIvCUMMHbvjY,7534
|
|
8
8
|
dataframe_textual/table_screen.py,sha256=XPzJI6FXjwnxtQSMTmluygwkYM-0-Lx3v9o-MuL6bMg,19071
|
|
9
9
|
dataframe_textual/yes_no_screen.py,sha256=NI7Zt3rETDWYiT5CH_FDy7sIWkZ7d7LquaZZbX79b2g,26400
|
|
10
|
-
dataframe_textual-2.6.
|
|
11
|
-
dataframe_textual-2.6.
|
|
12
|
-
dataframe_textual-2.6.
|
|
13
|
-
dataframe_textual-2.6.
|
|
14
|
-
dataframe_textual-2.6.
|
|
10
|
+
dataframe_textual-2.6.2.dist-info/METADATA,sha256=xY3DhSKRKdjm-l3uCz57CKI0eS051GJ3gG5NQn6CIEc,29494
|
|
11
|
+
dataframe_textual-2.6.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
12
|
+
dataframe_textual-2.6.2.dist-info/entry_points.txt,sha256=R_GoooOxcq6ab4RaHiVoZ4zrZJ-phMcGmlL2rwqncW8,107
|
|
13
|
+
dataframe_textual-2.6.2.dist-info/licenses/LICENSE,sha256=AVTg0gk1X-LHI-nnHlAMDQetrwuDZK4eypgSMDO46Yc,1069
|
|
14
|
+
dataframe_textual-2.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|