I am building a web application and I am showing a dataframe there using the DataTable function from bokeh. I am trying to have it that the last row is displayed first and vice versa (reversing the row order). I can do this to the dataframe using the df.iloc[::1] function, but when converting to a datatable, the rows aren't reversed like I want them to be. Any help?
The code (example):
df = pd.read_csv(myfile.csv)
df = df.iloc[::1]
Columns = [TableColumn(field=Ci, title=Ci) for Ci in df.columns]
table = DataTable(columns=Columns, source=ColumnDataSource(df))