fgenie / rims_minimal

시작이 절반이고 마무리 또한 절반이다.
0 stars 1 forks source link

KeyError: "None of ['index'] are in the columns" #12

Closed seanexp closed 8 months ago

seanexp commented 8 months ago

https://github.com/fgenie/rims_minimal/blob/d0b4f2b46bc9acb6b0df2fe633cbc94d7c3c3e9a/src/run_inference.py#L258-L260

gsm 데이터셋에서는 index 가 있었던 것 같은데 다른 데이터셋에서는 있다고 보장하기는 힘드니 처리를 해주는 게 좋을 것 같습니다.

df = pd.DataFrame(records)
    if "index" in df.columns:
        df = df.set_index("index", drop=False)

정도가 어떨까 싶네요

seanexp commented 8 months ago

@fgenie @jason9693

fgenie commented 8 months ago

작업중입니다. 참고하고 완료 후 닫을게요.