Skip to content

Commit 9efbdb3

Browse files
committed
Remove DataFrameTable.__init__
This allows for the full set of DataTable initialisation arguments to be passed through via DataFrameTable. See https://textual.textualize.io/widgets/data_table/#textual.widgets.DataTable for the parameters that people may wish to be using. This means that DataFrameTable is now a drop-in replacement for DataTable. If DataFrameTable does need to grow its own __init__ it would be a good idea to carry all of those arguments through.
1 parent 5e9f007 commit 9efbdb3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

textual_pandas/widgets.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
class DataFrameTable(DataTable):
66
"""Display Pandas dataframe in DataTable widget."""
77

8-
def __init__(self):
9-
super().__init__()
10-
118
def add_df(self, df: pd.DataFrame):
129
"""Add DataFrame data to DataTable."""
1310
self.df = df

0 commit comments

Comments
 (0)