Delete row from tabulator

import numpy as np
import panel as pn
import pandas as pd
import datetime as dt
pn.extension()

def append_data(follow=True):
    stream_df = pd.DataFrame(np.random.randn(10, 5), columns=list('ABCDE'))
    stream_table.stream(stream_df, follow=follow)

stream_df = pd.DataFrame(np.random.randn(10, 5), columns=list('ABCDE'))

stream_table = pn.widgets.Tabulator(stream_df, layout='fit_columns', width=450)
stream_table

How do I delete rows from tabulator? Above shows adding rows

I don’t know of a dedicated, efficient method. But you can always replace the whole data frame.

Deleting one or more rows via an index would make sense as a Feature Request I think.

1 Like