본문 바로가기
새롭게 알게된_tech/파이썬_tech

15.[파이썬] 여러 리스트를 하나로 합쳐주는 zip함수

by 애플파ol 2022. 11. 9.
import pandas as pd

data_1=[1,2,3,4,5,6]
data_2=[4,5,2,5,6,7]

zipdata=zip(data_1,data_2)
print(pd.DataFrame(zipdata))

출력 :