본문 바로가기
AI월드/⚙️AI BOOTCAMP_Section 1

Data Manipulation_Day3(5)_pipe & chaining

by khalidpark 2021. 1. 4.

chaining

 

연속적으로 진행되는 코드를 조금더 깔끔하게 정리하는 방법

 

예)

(before)

df = a(df)

df = b(df)

df = c(df)

 

(after)

df = df.a.b.c()

pipe

판다스 파이프 모르겠다 이해안됨

 

 

 

출처 : pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pipe.html

728x90

댓글