2025년 6월 24일
import pandas as pd df = pd.read_csv('https://github.com/allisonhorst/palmerpenguins/raw/main/inst/extdata/penguins_raw.csv') df.shape
(344, 17)
def make_cdf_map(df, colname, by='Species2'): cdf_map = {} grouped = df.groupby(by)[colname] for species, group in grouped: cdf_map[species] = Cdf.from_seq(group, name=species) return cdf_map