Adding Dataframe to pinecone | ApiValueError: Unable to prepare type DataFrame for serialization

Hi, I am trying to add Dataframes into pinecone. I’m using haystack to create a QA model for tables

processed_tables = []
with open(f"{table_dir}/tables.json") as tables:
    tables = json.load(tables)
    print(tables)
    for key, table in tables.items():
        current_columns = table["header"]
        print(current_columns)
        current_rows = table["data"]
        current_df = pd.DataFrame(columns=current_columns, data=current_rows)
        document = Document(content=current_df, content_type="table", id=key)
        processed_tables.append(document)

document_store.write_documents(processed_tables)

And this is the error that I’m getting –

ApiValueError: Unable to prepare type DataFrame for serialization

This is what my document_store looks like –

document_store = PineconeDocumentStore(
    api_key=pinecone_key,
    environment='northamerica-northeast1-gcp',
    similarity="cosine",
    index='new_scrapped',
    embedding_dim=1536
)

Can anyone please help out?