공식 홈페이지 접속 https://go.dev/doc/install Download and install - The Go Programming Language Download and install Download and install Go quickly with the steps described here. For other content on installing, you might be interested in: 1. Go download. Click the button below to download the Go installer. Download Go Don't see your operating syste go.dev 설치 클릭 설치완료
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', '..
먼저 리스트 출력 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() 리스트를 데이터프레임으로..
코드 import time from numba import jit @jit(nopython=True) def function_numba(): numba_data_list = [] for i in range(0, 100000000): numba_data_list.append(i) for_data_list = [] for_time_list = [] numba_time_list = [] for i in range(10): start_time = time.time() for j in range(0, 100000000): for_data_list.append(j) end_time = time.time() for_time_list.append(round(end_time - start_time, 2)) start_t..
코드 작성 import time for_data_list = [] while_data_list = [] for_time_list = [] while_time_list = [] for i in range(10): start_time = time.time() for j in range(0, 100000000): for_data_list.append(j) end_time = time.time() for_time_list.append(round(end_time - start_time, 2)) k = 0 start_time = time.time() while k < 100000000: while_data_list.append(k) k += 1 end_time = time.time() while_time_list...
다음과 같은 데이터프레임이 있다. import pandas as pd first_data = [i for i in range(10, 20)] second_data = 15 df = pd.DataFrame({'first': first_data, 'second': second_data}) print(df) first의 값이 second 보다 크면 True 를 출력하고 아니면 False 를 출력하는 result 행을 만들어보자 import pandas as pd first_data = [i for i in range(10, 20)] second_data = 15 df = pd.DataFrame({'first': first_data, 'second': second_data}) df['result'] = df['..