# Wandb API run.history() skip some values

**URL:** <https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [October 28, 2021, 8:36am UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126 "2021-10-28T08:36:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dereyly](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dereyly](https://community.wandb.ai/u/dereyly)\
**Post date:** [October 28, 2021, 8:36am UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126/1 "2021-10-28T08:36:56Z")

</div>

Hi,  
I have a task to analyses and choose best model from metrics.  
And follow instructions of wnadb API its easy to use.  
But when i call run.history() – my result table skip some values – there is nan in front of some existing test metric values. API have 48 rows and export csv have 71 rows

---

<div class="post-metadata">

**Author:** ![bhutanisanyam1](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/bhutanisanyam1/32/18_2.png) [@bhutanisanyam1](https://community.wandb.ai/u/bhutanisanyam1)\
**Post date:** [October 28, 2021, 3:53pm UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126/2 "2021-10-28T15:53:57Z")

</div>

Hello! Welcome to our forums and Thank you for your question!

Could you kindly check if the same is being logged during the run?

Logged values get appended to `run.history()`

---

<div class="post-metadata">

**Author:** ![dereyly](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dereyly](https://community.wandb.ai/u/dereyly)\
**Post date:** [October 29, 2021, 9:31am UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126/3 "2021-10-29T09:31:20Z")

</div>

I dont know how to get full log from web interface. (In log tab i cant download, its redirect to storage. googleapis. com and it is empty )  
Downloaded one of metrics with 72 rows  
And `run.history()` return **different** results 52 and 46  
[https://storage.yandexcloud.net/kaggle/wandb\_debug/hist.csv](https://storage.yandexcloud.net/kaggle/wandb_debug/hist.csv)  
[https://storage.yandexcloud.net/kaggle/wandb\_debug/wandb\_export\_2021-10-28T11%2019%2023.558%2B03%2000.csv](https://storage.yandexcloud.net/kaggle/wandb_debug/wandb_export_2021-10-28T11%2019%2023.558%2B03%2000.csv)  
PS: how can i attach files here?

---

<div class="post-metadata">

**Author:** ![dereyly](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dereyly](https://community.wandb.ai/u/dereyly)\
**Post date:** [October 29, 2021, 9:33am UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126/4 "2021-10-29T09:33:04Z")

</div>

[https://storage.yandexcloud.net/kaggle/wandb\_debug/hist2.csv](https://storage.yandexcloud.net/kaggle/wandb_debug/hist2.csv)

---

<div class="post-metadata">

**Author:** ![dereyly](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dereyly](https://community.wandb.ai/u/dereyly)\
**Post date:** [October 29, 2021, 9:36am UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126/5 "2021-10-29T09:36:41Z")

</div>

```python
 df=run.history()
filtered_df = df[df['test/epoch'].notnull()]
filtered_df.to_csv('/home/dereyly/tmp/hist2.csv')

```

---

<div class="post-metadata">

**Author:** ![aidanjd](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/aidanjd/32/258_2.png) [@aidanjd](https://community.wandb.ai/u/aidanjd)\
**Post date:** [November 3, 2021, 3:08pm UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126/6 "2021-11-03T15:08:38Z")

</div>

Hi @dereyly , if you’d like to chart a link to your project page ([wandb.ai/](http://wandb.ai/)/\<project\_name\>) I can take a look and see what exactly is going on.

---

<div class="post-metadata">

**Author:** ![aidanjd](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/aidanjd/32/258_2.png) [@aidanjd](https://community.wandb.ai/u/aidanjd)\
**Post date:** [November 12, 2021, 8:03pm UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126/7 "2021-11-12T20:03:46Z")

</div>

Hi @dereyly, just following up here.

---

<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:** [January 11, 2022, 8:03pm UTC](https://community.wandb.ai/t/wandb-api-run-history-skip-some-values/1126/8 "2022-01-11T20:03:53Z")

</div>

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