# Calling a single wandb.log(wandb.Table) logs multiple tables with slightly different contents

**URL:** https://community.wandb.ai/t/calling-a-single-wandb-log-wandb-table-logs-multiple-tables-with-slightly-different-contents/7961
**Category:** W&B Help
**Tags:** tables
**Created:** [September 21, 2024, 4:36pm UTC](https://community.wandb.ai/t/calling-a-single-wandb-log-wandb-table-logs-multiple-tables-with-slightly-different-contents/7961 "2024-09-21T16:36:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![barikata1984](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@barikata1984](https://community.wandb.ai/u/barikata1984)
#### Post date: [September 21, 2024, 4:36pm UTC](https://community.wandb.ai/t/calling-a-single-wandb-log-wandb-table-logs-multiple-tables-with-slightly-different-contents/7961/1 "2024-09-21T16:36:04Z")

</div>

I am experiencing a weird behaivour of `wandb.log(wandb.Table)` and want to fix it. The following is an excerpt from my code:

```auto
print(df)
run_name = df['run_name'].iloc[0]
wandb.init(
    entity=args.entity,
    project=args.project,
    group=args.group,
    job_type=run_name,
    name=run_name,
)

wandb.log({"result": wandb.Table(dataframe=df)})

wandb.finish()

```

The resul of `print(df)` is as follows:

```auto
    run_name total_mass mx my mz ixx iyy izz ixy iyz izx score num_active_vxs
0 global_gt 5.582391 -0.002781 -0.008022 0.001889 0.193884 0.201152 0.198709 0.000203 0.000165 0.000203 0.0 19191

```

So, my expectation is one single table with the same content as the `df` appears on my dashboard. However, three tables with slightly different contents appear on the dashboard as shown below:  
[First and second tables]

 ![Screenshot from 2024-09-21 12-33-44](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/9/992816b9005ecb51b02bc2e7adf4545bd82ee186.png)  
[Third table]  
 ![Screenshot from 2024-09-21 12-34-00](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/0/0e9beedeb90da09a82983a61c4027dbc172e5ab4.png)  
The expected table actually appears as the first table, but the second table does not have `score` element and the third table’s labels are followed by `.1` and no values appear.

I do not have any ideas what is the cause of this behaviour. Do anybody experienced something similar, or have a solution to prevent `wandb` from putting the second and third tables on the dashboard?

Thanks in advance!

---

<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: [September 23, 2024, 5:24pm UTC](https://community.wandb.ai/t/calling-a-single-wandb-log-wandb-table-logs-multiple-tables-with-slightly-different-contents/7961/2 "2024-09-23T17:24:08Z")

</div>

Hey Atsushi:  
I used the code you shared but not seeing the same problem you have. I’m wondering if the problem is coming from your version of pandas or your code somewhere else accidentally logging the tables you are seeing.  
Here’s the code I used with small modification of your code

```
import pandas as pd# Define the data as a dictionarydata = { 'run_name': ['global_gt'], 'total_mass': [5.582391], 'mx': [-0.002781], 'my': [-0.008022], 'mz': [0.001889], 'ixx': [0.193884], 'iyy': [0.201152], 'izz': [0.198709], 'ixy': [0.000203], 'iyz': [0.000165], 'izx': [0.000203], 'score': [0.0], 'num_active_vxs': [19191]}# Create the DataFramedf = pd.DataFrame(data)# Display the DataFrameprint(df)run_name = df['run_name'].iloc[0]wandb.init( entity="myentity", project="dfLog",)dropped_dataser = df.drop(columns=['run_name', 'score']).iloc[0]# dropped_dataser.index= tagged_columnsfor step in range(1, 5): wandb.log(data=dropped_dataser.to_dict(), step=step)to_log = wandb.Table(dataframe=df)wandb.log({"result": to_log}) # columns=list(columns), data=[data])})wandb.finish()

```

Best, W&B

---

<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: [September 24, 2024, 8:31pm UTC](https://community.wandb.ai/t/calling-a-single-wandb-log-wandb-table-logs-multiple-tables-with-slightly-different-contents/7961/3 "2024-09-24T20:31:45Z")

</div>

Hi Atsushi,

We wanted to follow up with you regarding your support request as we have not heard back from you. Please let us know if we can be of further assistance or if your issue has been resolved.

Best,  
Weights & Biases

---

<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: [September 25, 2024, 7:51pm UTC](https://community.wandb.ai/t/calling-a-single-wandb-log-wandb-table-logs-multiple-tables-with-slightly-different-contents/7961/4 "2024-09-25T19:51:06Z")

</div>

Hi Atsushi, 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!
