# Multiple tables

**URL:** <https://community.wandb.ai/t/multiple-tables/2856>\
**Category:** W&B Help\
**Tags:** tables\
**Created:** [August 6, 2022, 12:09am UTC](https://community.wandb.ai/t/multiple-tables/2856 "2022-08-06T00:09:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlebacher](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@erlebacher](https://community.wandb.ai/u/erlebacher)\
**Post date:** [August 6, 2022, 12:09am UTC](https://community.wandb.ai/t/multiple-tables/2856/1 "2022-08-06T00:09:12Z")

</div>

I know how to create a table with a data frame programmatically. However, I have two data frames, and they have different number of rows, so I cannot combine them into a single data frame. How do I upload two different tables to a Weights&Biases project? Somehow, I suspect that the following is not the correct approach:

```python
    train_df = pd.DataFrame({
        'tx':train_x,
        'ty':train_y,
    })
    valid_df = pd.DataFrame({
        'vx':valid_x,
        'vy':valid_y
    })

    # How to add multiple tables

    wandb.log({"table": train_df}, commit=False)
    wandb.log({"table": valid_df}, commit=False)

```

Any help is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [August 10, 2022, 9:27pm UTC](https://community.wandb.ai/t/multiple-tables/2856/2 "2022-08-10T21:27:09Z")

</div>

Hi @erlebacher , see [this document](https://docs.wandb.ai/guides/data-vis/log-tables#create-tables) on how to create tables from dataframes and please let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [August 17, 2022, 8:38am UTC](https://community.wandb.ai/t/multiple-tables/2856/3 "2022-08-17T08:38:02Z")

</div>

HI @erlebacher , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [October 16, 2022, 8:38am UTC](https://community.wandb.ai/t/multiple-tables/2856/4 "2022-10-16T08:38:25Z")

</div>

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