Missing column in Dash Table!

Hi!

I was using Dash to display a table using a button callback. My function to generate the table is as follows:
def generate_table(dataframe, max_rows=20):
return html.Table(
# Header
[html.Tr([html.Th(col) for col in dataframe.columns]) ] +

    # Body
    [html.Tr([
        html.Td(dataframe.iloc[i][col]) for col in dataframe.columns
    ]) for i in range(min(len(dataframe), max_rows))]
)

And I was trying to find a count of values in an Excel data frame and find 10 highest values using the following:

a=df.groupby(‘Employee Name’).count()
b=df.nlargest(10, [‘Number of units ordered’])

When I open the Dash app and activate the callback, it only shows the ‘Number of units ordered’ column and doesn’t show the ‘Employee Name’ column.

Can somebody suggest how I can fix this?

Any help would be appreciated.

Thank you!