Notice
Recent Posts
Recent Comments
Link
250x250
목록grouping (1)
develope_kkyu
[Python] pandas 예제 - 4
https://pandas.pydata.org/docs/user_guide/10min.html에 나와 있는 pandas 예제 코드를 살펴본다. import pandas as pd import numpy as np Grouping(그룹화) 그룹화는 어떠한 기준을 바탕으로 데이터를 분할(split), 각 그룹에 어떤 함수를 독립적으로 적용(apply), 적용되어 나온 결과들을 결합(combine)하는 과정을 지칭한다. df = pd.DataFrame( { "A": ["foo", "bar", "foo", "bar", "foo", "bar", "foo", "foo"], "B": ["one", "one", "two", "three", "two", "two", "one", "three"], "C": np.rando..
Python
2023. 1. 5. 17:30