Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion panel/widgets/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,8 @@ def current_view(self):
Returns the current view of the table after filtering and
sorting are applied.
"""
if self.value is None:
return
df = self._processed
return self._sort_df(df)

Expand All @@ -945,7 +947,9 @@ def selected_dataframe(self):
"""
Returns a DataFrame of the currently selected rows.
"""
if not self.selection:
if self.value is None:
return
elif not self.selection:
return self.current_view.iloc[:0]
df = self.value.iloc[self.selection]
return self._filter_dataframe(df)
Expand Down