데이터 엔지니어

Programming Language/Python

[Python] 문자열을 hash 값으로 만드는 방법

import pandas as pd import hashlib list_first = [] list_second = [] list_third = [] list_hash = [] for i in range(0, 10): list_first.append(i) list_hash.append(hashlib.sha256(str(i).encode()).hexdigest()) for i in range(10, 20): list_second.append(i) for i in range(20, 30): list_third.append(i) df = pd.DataFrame(zip(list_first, list_second, list_third, list_hash)) df.columns = ['id_1', 'id_2', '..

Programming Language/Python

[Python] 리스트 여러개를 판다스 데이터프레임으로 만드는 방법

먼저 리스트 출력 import pandas as pd import hashlib list_first = [] list_second = [] list_third = [] list_hash = [] for i in range(0, 10): list_first.append(i) list_hash.append(hashlib.sha256(str(i).encode()).hexdigest()) for i in range(10, 20): list_second.append(i) for i in range(20, 30): list_third.append(i) print(list_first) print(list_second) print(list_third) print(list_hash) exit() 리스트를 데이터프레임으로..

Programming Language/Python

아나콘다 사용시 가상환경 만들기 삭제 명령어 모음

conda info --envs conda create -n py38 python=3.8 conda activate py38 conda deactivate conda remove -n py38 --all

박경태
'분류 전체보기' 카테고리의 글 목록 (56 Page)