St.table show empty when go to production, but works on development

I can understand what’s happen. When I work on development mode I have return, when I send to production not.

My code:

df_errors = dataframe[~dataframe['DEST_CODIGOPRODUTO_STERIS'].isin(product_list)]
    df_all_errors = pd.concat([df_errors, dataframe[dataframe['RAZAO_SOCIAL'].isnull()], dataframe[dataframe['DEST_QTDEPRODUTO'].isnull()]])
    # df_errors = df_errors['DEST_CODIGOPRODUTO_STERIS'] | dataframe[dataframe['RAZAO_SOCIAL'].isnull()]
    
    st.warning('Lista abaixo com a linha e código cujo Código de Produto não foi encontrado. Baixe a lista de Produtos', icon="⚠️")
    # print('list of errors', list_of_errors)
    st.subheader('Lista de Produtos não identificados, ou coluna de quantidade ou razão social em branco: ')
    return st.table(data=df_all_errors)

What I get on development:

What I get on production:

How I found here, the problem could be because I’m not doing return statement.
These is how I call my functions, and the one that I have the problem is check_df(df_changed)

if uploaded_file:
    df = pd.read_csv(uploaded_file, sep=";", encoding='latin1', dtype='str')
    try:
      df_changed = clean_transform_df(df)
      check_df(df_changed)
      editable_df(df_changed)
    except ValueError as e:
      print('Value Error', e)
    except:
      print('Something is going wrong')

Please, help me someone!!!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.