분류

확률 통계
공개

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
맨 위로