sql in 조건 넣을 때, [] 없애기
l_goods = df_goods[df_goods["ord_posbl_dow_tag"].isin(["3_m","3_t","2_wf"])].goods_cd.drop_duplicates().reset_index(drop=True).tolist()
l_goods = str(l_goods).strip("[]")
l_biz = str([x.replace('V' , '') for x in l_bizpl]).strip("[]")
'언어 꿀Tip > Python 꿀tip!' 카테고리의 다른 글
07_01_21. 데이터프레임 컬럼 drop 삭제 (0) | 2021.03.26 |
---|---|
07_01_20. 데이터프레임 merge join 시 다른 key 사용 (0) | 2021.03.26 |
07_01_18. [AWS] plot에 한글폰트 추가하기 (0) | 2021.03.25 |
07_01_17. 데이터 프레임 주차 나오게 하기 (0) | 2021.03.24 |
07_01_15. pandas sql (데이터프레임) (0) | 2021.03.24 |