Notice
Recent Posts
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Tags more
Archives
관리 메뉴

🐥

[Spark] CSV 파일 로드하기 본문

데이터/Spark

[Spark] CSV 파일 로드하기

•8• 2023. 4. 25. 14:56
data_3 = hc.read.\
    csv('/my/path/partition={PARTITION}/*'.format(PARTITION=my_partition), header=False, schema=customSchema) 

# header가 있을 경우 schema는 따로 없어도 됨 (header=True)