用左 pandas / numpy + fastapi / pydantic => ValueError: Out of range float values are not JSON compliant 

dump 晒成個 想 response 既 dict 出黎望

望下有無 d value 有無 nan 先啦 (多既話都難睇既)

尤其用左 pandas dataframe, numpy 呢d 

佢計唔到數就會出NAN, 咁o岩個 fastapi 定 pydantic 想要float 就會出呢個 err 

你改佢做0 又好 , 一d 數字又好 

就有機會出到 response (which is json) 

一般 Class, Dataframe 應該都過到 fastapi response … 通常死係 float NAN 到