Skip to content

Commit

Permalink
fixed nan value in the table
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Feb 1, 2024
1 parent 279e20f commit eeb7817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pephub/routers/api/v1/project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import eido
import yaml
import pandas as pd
import numpy as np
import peppy
import logging
from typing import Callable, Literal, Union, Optional, List, Annotated
Expand Down Expand Up @@ -397,7 +398,7 @@ async def get_pep_samples(
return JSONResponse(
{
"count": df.shape[0],
"items": df.replace({pd.NA: None}).to_dict(orient="records"),
"items": df.replace({np.nan: None}).to_dict(orient="records"),
}
)
else:
Expand Down

0 comments on commit eeb7817

Please sign in to comment.