심심해서만들어보는함수 - Pandas 인덱싱 메서드로 컬럼 순서 변경하기
딥상어동의 딥한생각
Docstring - Google Syle 함수 내용 - 판다스 Indexing 메서드와 그 에 따라 컬럼 순서가 어떻게 바뀌는지 확인 고려 내용 - np.intersect1d를 이용하여 df안에 있는 컬럼인지 체크 - iloc의 경우 dict를 이용하여 원본 df의 컬럼 순서를 저장 def change_col_order(method_type: str, col_list: list, df: pd.DataFrame): """change the col order using iloc/loc/concat/column_indexing change the col order using python method Args: method_type (str): method_name col_list (list): column_..