파이썬/코딩 영어단어공부
Pandas DataFrame : apply 해석
한국수달보호협회장
2022. 6. 22. 21:36
그냥 강의봐도 이해가 안됐던 apply, 영어로 읽으니 한층 더 이해가 안된다. 하지만 해석해보자
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.apply.html
pandas.DataFrame.apply — pandas 1.4.2 documentation
next pandas.DataFrame.applymap
pandas.pydata.org
Objects passed to the function are Series objects whose index is either the DataFrame’s index (axis=0) or the DataFrame’s columns (axis=1). By default (result_type=None), the final return type is inferred from the return type of the applied function. Otherwise, it depends on the result_type argument.
passed to : 전달되는
함수에 전달되는 개체들은 Series objects다. (축이 행이거나, 열이거나).
return type은 함수의 return type에 따라 다르다.