H2OFrame 与 Pandas DataFrame 数据操作对照指南:h2o-3 官方 Parity 表的迁移实战
H2OFrame 与 Pandas DataFrame 数据操作对照指南:h2o-3 官方 Parity 表的迁移实战
导读
本文围绕 h2o-3 官方维护的 Python H2OFrame / Pandas DataFrame Munging Conversion Table(Python_H2OFrame_PandasDataFrame_Parity.md)展开,系统梳理 H2OFrame 与 pandas DataFrame 在类型转换、缺失值处理、数学统计、字符串处理、时间日期、组合连接、交叉验证等场景下的一一对应关系,并结合 h2o-py/h2o/frame.py 源码验证其底层实现。读完本文,你将掌握 H2OFrame 方法到 pandas 等价方法的完整映射表、每种操作的调用方式与注意事项,并能借助源码理解这些方法在分布式执行环境下的真实行为,从而在 H2O 集群与本地 pandas 之间无缝迁移数据处理代码。
一、对照表背景与阅读约定
H2O 的 Python 客户端通过 H2OFrame 类封装了集群中的分布式数据。H2OFrame 的 API 设计借鉴了 R 语言的数据框习惯(因此方法名多为 asfactor、na_omit、rbind、nrow 等),与 pandas DataFrame 的命名习惯差异较大。为了让熟悉 pandas 的用户能够快速迁移,h2o-3 在 h2o-docs/src/cheatsheets/ 目录下维护了这份方法级对照表(cheatsheet),与同目录的 H2O_R_Python_Parity.md 一起构成官方的 API 对照资料。
阅读该表需要记住两条约定:
- 空白等价:
Pandas Equivalent Method一列为空时,表示 H2O 方法本身就与 pandas 等价(通常是同名方法,如.mean()、.merge()、.quantile()); - NA 表示无直接等价:表中标记为
NA的方法(如.impute()、.kfold_column())在 pandas 中没有现成的直接对应实现,需要自行组合 pandas 原语或改用 H2O 专有 API。
原表注明最后更新于 2017-07-20,并鼓励社区通过 pull request 补充遗漏的方法;本文在继承原表全部条目的基础上,逐一补充了源码实现依据与默认参数,供读者作为迁移时的完整参考。
二、类型转换与类型检测
H2OFrame 与 pandas 最显著的差异在于列类型体系:H2O 将列划分为 numeric(数值)、enum(类别/因子)、string(字符串)、time(时间)、uuid、bad 等类型,而 pandas 使用 numpy 的 dtype。下表汇总了类型相关的映射:
| H2OFrame 方法 | Pandas 等价方法 | 说明 |
|---|---|---|
.ascharacter |
astype(str) |
转字符串列 |
.asfactor |
.astype('category') 或 .astype('object') |
转类别列(H2O 的 enum 类型) |
.asnumeric |
astype(numpy.float) 或 apply(numpy.float) |
转数值列 |
.as_date |
.to_datetime |
按格式解析为时间列 |
.categories |
.unique() |
取类别取值 |
.type |
.dtype |
单列类型 |
.types |
.dtypes |
全表各列类型 |
.columns_by_type |
.select_dtypes() |
按类型筛选列 |
.levels |
.cat.categories、.unique() |
取因子水平 |
.nlevels |
.nunique() |
因子水平数量 |
.isfactor / .isnumeric / .isstring |
— | H2O 专有类型判定 |
.ischaracter |
.isinstance(pandas_column, object) |
字符串判定 |
.set_name / .set_names |
.rename() |
重命名列 |
.set_level / .set_levels |
— | 设置因子水平(无直接等价) |
.relevel |
— | 重排因子水平(无直接等价) |
.anyfactor |
— | 判断是否含因子列(H2O 专有) |
从源码看,asfactor() 只允许对 bool、int、string、enum 类型的列执行,否则抛出 H2OValueError,并通过 ExprNode("as.factor", self) 构建后端表达式(frame.py#L3287);as_date(format) 接受如 "%Y-%m-%d" 的格式串并返回 int 类型的时间列(frame.py#L1642);columns_by_type(coltype) 支持的取值包括 "numeric"、"categorical"、"string"、"time"、"uuid"、"bad",返回满足条件的列索引列表(frame.py#L532)。
三、缺失值处理
H2O 对缺失值的语义与 pandas 基本一致(NA 对应 pandas 的 NaN),但提供了更面向数据清洗的一整套方法:
| H2OFrame 方法 | Pandas 等价方法 | 说明 |
|---|---|---|
.isna |
.isnull |
逐元素判断是否缺失 |
.na_omit |
.dropna() |
删除含 NA 的行 |
.nacnt |
.isnull().sum() |
统计各列缺失个数 |
.any_na_rm |
—(同名逻辑等价) | 忽略 NA 后判断是否有非零值 |
.filter_na_cols |
—(无直接等价) | 按缺失率过滤列 |
.insert_missing_values |
—(无直接等价) | 随机注入缺失值(用于测试鲁棒性) |
.impute |
—(无直接等价) | 列级缺失值填充 |
.num_valid_substrings |
— | 统计有效子串数量 |
.entropy |
—(NA) | 熵计算,pandas 无直接等价 |
.mode |
—(NA) | 众数,pandas 无直接等价 |
以 isna() 为例,其源码返回 0/1 构成的 H2OFrame,并对结果列自动命名为 isNA(原列名)(frame.py#L4397);na_omit() 通过 ExprNode("na.omit", self) 在集群端完成整行删除(frame.py#L4354);filter_na_cols(frac=0.2) 则默认过滤缺失比例超过 20% 的列(frame.py#L513)。值得注意的是,H2O 的 impute() 支持按均值、中位数、众数或指定值填充,并可选分组填充,这是 pandas 原生接口不具备的分布式能力。
四、组合、连接与聚合
这是 H2OFrame 与 pandas 差异最大的领域之一,H2O 沿用了 R 的 cbind/rbind 命名:
| H2OFrame 方法 | Pandas 等价方法 | 说明 |
|---|---|---|
.cbind |
.concat() |
按列拼接(横向) |
.rbind |
—(同名语义) | 按行拼接(纵向) |
.concat |
—(同名) | 按 axis 拼接(1 列、0 行) |
.merge |
—(同名语义) | 按键合并两个数据框 |
.group_by |
.groupby() |
分组聚合,返回 GroupBy 对象 |
.ddply |
— | R 风格分组切分-处理-合并(无直接等价) |
.split_frame |
—(无直接等价) | 按比例随机切分训练/验证集 |
.interaction |
—(无直接等价) | 因子交叉组合生成新列 |
.transpose |
—(同名) | 转置 |
.cut |
— | 按断点将连续值分箱 |
.flatten |
— | 展平为单列 |
.getrow |
list(pandas_dataframe.loc[0,:]) |
取某一行转 Python 列表 |
.mult |
.dot |
矩阵乘法 |
关键细节来自源码注释:cbind() 要求两个框架行数一致,否则抛出 H2OValueError(frame.py#L2481);rbind() 要求列数、列名、列类型一致(数值类 float/real/double/int/long/numeric 之间可互通,frame.py#L2526);merge() 默认采用 radix 方法,相比 hash 方法能正确处理右表重复行、支持左表字符串列,因此被列为默认实现(frame.py#L2805);group_by() 返回的 GroupBy 对象支持 .count()、.min()、.max()、.mean()、.var()、.sd()、.ss()、.sum() 等聚合算子,且可通过 na 参数(rm/ignore/all)控制缺失值处理(frame.py#L2650)。
五、数学与统计计算
对照表覆盖了 H2O 提供的全部基础数学与统计算子,三角/双曲函数通常映射为 pandas 的 apply(lambda x: numpy.xxx(x), axis=0) 形式,统计量则大多与 pandas 同名等价:
| H2OFrame 方法 | Pandas 等价方法 | 说明 |
|---|---|---|
.abs |
—(等价) | 绝对值,源码为 _unop("abs")(frame.py#L1053) |
.acos / .acosh / .asin / .asinh / .atan / .atanh |
.apply(lambda x: numpy.arcxxx(x), axis=0) |
反三角/双曲函数 |
.sin / .sinh / .sinpi / .cos / .cosh / .cospi / .tan / .tanh / .tanpi |
.apply(lambda x: numpy.xxx(numpy.pi * x), axis=0) |
三角/双曲函数 |
.ceil / .floor |
.apply(numpy.ceil) / .apply(numpy.floor) |
向上/向下取整 |
.round |
—(等价) | 四舍五入,默认 digits=0(frame.py#L4298) |
.sign |
numpy.sign() |
符号函数 |
.sqrt |
.apply(lambda x: numpy.sqrt(x), axis=0) |
平方根 |
.log / .log10 / .log1p / .log2 |
numpy.log() 等 |
对数族 |
.logical_negation |
numpy.logical_not() |
逻辑取反 |
.exp / .expm1 |
numpy.exp() / numpy.expm1() |
指数族 |
.gamma / .digamma / .trigamma / .lgamma |
scipy.special.gamma() 等 |
特殊函数族 |
.cor |
.corr |
相关矩阵(支持 Pearson/Spearman) |
.mean / .median / .sd / .var / .sum / .min / .max / .prod / .count |
—(等价) | 描述性统计 |
.kurtosis / .skewness |
.kurt / .skew |
峰度 / 偏度 |
.moment |
pd.to_datetime() |
时间成分组合 |
.ss |
—(NA) | 平方和 |
.cummax / .cummin / .cumprod / .cumsum |
—(等价) | 累积计算,支持 axis 参数 |
.difflag1 |
.diff |
一阶差分(仅限单列数值列) |
.quantile |
—(等价) | 分位数,默认概率列表为 <a href="https://link.gitcode.com/i/daffe168966350717041bb7393b826f8" target="_blank">0.01, 0.1, 0.25, 0.333, 0.5, 0.667, 0.75, 0.9, 0.99]([frame.py#L2419) |
.runif |
numpy.random.uniform() |
均匀分布随机数 |
.scale |
sklearn.preprocessing.StandardScaler() |
标准化 |
.ifelse |
numpy.where() |
条件选择 |
.table |
.value_counts() |
频数 / 交叉频数表 |
.describe |
—(等价) | 描述统计 |
.summary |
.describe() |
汇总统计 |
.hist |
— | 直方图(breaks 支持 sturges/rice/sqrt 等规则) |
.isin / .match / .unique |
—(等价语义) | 成员判断 / 索引匹配 / 去重 |
.any / .all |
—(等价语义) | 逻辑归约(any_na_rm 为忽略 NA 版本) |
两个源码细节值得注意:cor() 的 use 参数支持 "everything"、"all.obs"、"complete.obs" 三种缺失值策略,且当两个输入均为单行或单列时返回标量而不是框架(frame.py#L3169);difflag1() 只接受单列且类型为 real/int/bool 的框架(frame.py#L4371)。此外原表中 .cosh、.hour 两行存在明显的笔误(分别把 arccosh 写成了 arccos、把 .hour 写成了 .year),迁移时请按函数语义使用。
六、字符串处理
字符串操作是 pandas 通过 str accessor 实现的,H2O 则以扁平方法提供:
| H2OFrame 方法 | Pandas 等价方法 | 说明 |
|---|---|---|
.nchar |
.str.len() |
字符串长度 |
.countmatches |
.str.contains() |
统计匹配次数 |
.strsplit |
.str.split |
按正则切分 |
.gsub |
.replace() |
全局正则替换 |
.sub |
.str.replace() |
正则替换 |
.substring |
.str.slice() |
子串截取 |
.trim |
.str.strip |
去首尾空白 |
.lstrip |
.str.lstrip('') |
去左空白 |
.rstrip |
.str.rstrip('') |
去右空白 |
.toupper |
.apply(lambda x: x.upper(), inplace=True) |
转大写 |
.tolower |
—(等价) | 转小写 |
strsplit(pattern) 返回拆分后的多列框架,而 tokenize(split)(未列入原表但源码邻近定义)将分词结果存入单列并保留 NA 行分隔,适合 word2vec 等后续处理(frame.py#L3387)。
七、时间与日期处理
| H2OFrame 方法 | Pandas 等价方法 | 说明 |
|---|---|---|
.as_date |
.to_datetime |
字符串/类别列转时间列 |
.year |
Series.dt.year |
年份 |
.month |
Series.dt.month |
月份 |
.week |
Series.dt.week |
周序号 |
.day |
Series.dt.day |
日 |
.dayOfWeek |
DatetimeIndex(pandas_dataframe[time_column]).dayofweek |
星期 |
.hour |
DatetimeIndex(...).hour |
小时(原表此处笔误为 .year) |
.mktime |
— | 时间戳换算(无直接等价) |
.moment |
pd.to_datetime() |
由年/月/日/时/分/秒组合时间 |
moment(year=..., month=..., day=..., hour=..., minute=..., second=..., msec=..., date=None, time=None) 在源码中实际是一个可接受全部时间成分参数的构造方法(frame.py#L1296),与对照表中列出的 pandas 侧 pd.to_datetime() 语义对应。
八、行/列选取、展示与数据导出
| H2OFrame 方法 | Pandas 等价方法 | 说明 |
|---|---|---|
.head / .tail |
—(等价) | 默认取前/后 10 行、200 列(frame.py#L589) |
.dim / .shape |
.shape |
维度 |
.nrow / .nrows |
.shape[0] |
行数 |
.ncol / .ncols |
.shape[1] |
列数 |
.names / .col_names |
.columns |
列名 |
.columns |
—(等价) | 列对象 |
.getrow |
list(pandas_dataframe.loc[0,:]) |
取一行 |
.get_frame_data |
近似 to_csv() |
导出 CSV 文本 |
.as_data_frame |
— | 转 pandas DataFrame / 嵌套列表 |
.frame / .frame_id / .from_python / .get_frame |
—(NA) | H2O 内部句柄与构造工具 |
.show / .structure |
—(NA) | H2O 控制台展示 |
.pop / .drop / .refresh / .trunc |
—(同名等价) | 删列 / 刷新 / 截断 |
.rep_len / .which |
—(NA) | R 风格工具 |
最常用的数据回传方法是 as_data_frame(use_pandas=True, header=True, use_multi_thread=False):默认通过 pandas.read_csv 从集群导出的 CSV 流构建 DataFrame;若安装了 polars 与 pyarrow,可开启 use_multi_thread=True 走多线程转换路径加速(frame.py#L1947)。与之相对,H2OFrame.from_python 用于将 Python 对象推送到集群创建分布式框架,两者共同构成 H2O 与 pandas 之间“导入—导出”的完整通道。
九、交叉验证辅助列与样本划分
这部分是 H2O 面向机器学习工作流提供的特色能力,多数在 pandas 中无直接等价,可借助 scikit-learn 对应实现:
| H2OFrame 方法 | Pandas 等价方法 | 说明 |
|---|---|---|
.kfold_column |
—(NA) | 生成 K 折交叉验证的折分配列,n_folds=3, seed=-1(frame.py#L1856) |
.modulo_kfold_column |
—(NA) | 按行号对 n_folds 取模分配折(frame.py#L1879) |
.stratified_kfold_column |
sklearn.model_selection.StratifiedKFold |
保持各类别分布的分层 K 折(frame.py#L1899) |
.stratified_split |
sklearn.model_selection.StratifiedShuffleSplit |
生成 "train"/"test" 两水平的分层划分列(frame.py#L4636) |
.split_frame |
— | 按 ratios 随机切分为多个子框架 |
.runif |
numpy.random.uniform() |
生成均匀随机列,常用于自定义切分 |
这三类折分配列(kfold_column、modulo_kfold_column、stratified_kfold_column)的产物可直接作为建模时的 fold_column 参数使用,实现分布式环境下的交叉验证,这是迁移到 sklearn 时需要自行组织循环的差异点。
十、快速迁移示例
以下示例取自 H2OFrame 源码 docstring 中的典型用法,演示从导入到建模特征工程的完整迁移链路:
import h2o
from h2o.frame import H2OFrame
h2o.init()
# 1. 导入:H2OFrame 读入集群,pandas 侧等价于 pd.read_csv
iris = h2o.import_file("http://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_wheader.csv")
# 2. 类型转换:类别列(pandas: astype('category'))
iris["class"] = iris["class"].asfactor()
# 3. 统计:相关矩阵(pandas: df.corr())
cor_h2o = iris[0:4].cor()
# 4. 条件构造新列(pandas: numpy.where)
iris = iris.cbind(iris[4] == "Iris-setosa") # 按列拼接,等价 pandas.concat
# 5. 分组聚合(pandas: groupby().mean())
grouped = iris.group_by("class").mean().get_frame()
# 6. 缺失值处理(pandas: dropna / isnull)
clean = iris.na_omit()
# 7. 回传本地:转 pandas DataFrame
df = iris.as_data_frame(use_pandas=True)
H2O 中的多数方法(如 abs、ifelse、cbind、isna 等)并不立即触发计算,而是通过 ExprNode 构建懒执行表达式树,待真正需要结果时才提交给集群执行(见 frame.py 中大量 H2OFrame._expr(expr=ExprNode(...)) 的调用),这一“远端懒执行 + 本地 pandas 拉取”的模型,是理解 H2OFrame 与 pandas 行为差异的关键。
十一、完整对照表总览
为便于日常速查,下表完整收录原 cheatsheet 的全部条目(保持原始映射不变,含原表笔误处,读者可对照前述各章节的修正说明):
| H2OFrame 方法 | Pandas 等价方法 |
|---|---|
.abs |
(等价) |
.acos |
.apply(lambda x: numpy.arccos(x), axis=0) |
.acosh |
.apply(lambda x: numpy.arccosh(x), axis=0) |
.all |
(等价) |
.any |
(等价) |
.any_na_rm |
(等价) |
.anyfactor |
(等价) |
.apply |
.apply |
.as_data_frame |
(等价) |
.as_date |
.to_datetime |
.ascharacter |
astype(str) |
.asfactor |
.astype('category') 或 .astype('object') |
.asin |
.apply(lambda x: numpy.arcsin(x), axis=0) |
.asinh |
.apply(lambda x: numpy.arcsinh(x), axis=0) |
.asnumeric |
astype(numpy.float) 或 apply(numpy.float) |
.atan |
.apply(lambda x: numpy.arctan(x), axis=0) |
.atanh |
.apply(lambda x: numpy.arctanh(x), axis=0) |
.categories |
.unique() |
.cbind |
.concat() |
.ceil |
.apply(numpy.ceil) |
.col_names |
.columns |
.columns |
(等价) |
.columns_by_type |
.select_dtypes() |
.concat |
(等价) |
.cor |
.corr |
.cos |
.apply(lambda x: numpy.cos(x), axis=0) |
.cosh |
.apply(lambda x: numpy.cosh(x), axis=0)(原表笔误为 arccos) |
.cospi |
.apply(lambda x: numpy.cos(numpy.pi * x), axis=0) |
.count |
(等价) |
.countmatches |
.str.contains() |
.cummax |
(等价) |
.cummin |
(等价) |
.cumprod |
(等价) |
.cumsum |
(等价) |
.cut |
(等价) |
.day |
Series.dt.day |
.dayOfWeek |
DatetimeIndex(pandas_dataframe[time_column]).dayofweek |
.ddply |
(等价) |
.describe |
(等价) |
.difflag1 |
.diff |
.digamma |
scipy.special.digamma() |
.dim |
.shape |
.drop |
(等价) |
.entropy |
NA |
.exp |
numpy.exp() |
.expm1 |
numpy.expm1() |
.filter_na_cols |
NA |
.flatten |
(等价) |
.floor |
.apply(numpy.floor) |
.frame |
NA |
.frame_id |
NA |
.from_python |
NA |
.gamma |
scipy.special.gamma() |
.get_frame |
NA |
.get_frame_data |
近似 to_csv() |
.getrow |
list(pandas_dataframe.loc[0,:]) |
.group_by |
.groupby() |
.gsub |
.replace() |
.head |
(等价) |
.hist |
(等价) |
.hour |
DatetimeIndex(pandas_dataframe[time_column]).hour(原表笔误为 .year) |
.ifelse |
numpy.where() |
.impute |
NA |
.insert_missing_values |
NA |
.interaction |
NA |
.isax |
NA |
.ischaracter |
.isinstance(pandas_column, object) |
.isfactor |
NA |
.isin |
(等价) |
.isna |
.isnull |
.isnumeric |
NA |
.isstring |
.isinstance(pandas_column, object) |
.kfold_column |
NA |
.kurtosis |
(等价) |
.levels |
.cat.categories、.unique() |
.lgamma |
scipy.special.gammaln() |
.log |
numpy.log() |
.log10 |
numpy.log10() |
.log1p |
numpy.log1p() |
.log2 |
numpy.log2() |
.logical_negation |
numpy.logical_not() |
.lstrip |
.str.lstrip('') |
.match |
(等价) |
.max |
(等价) |
.mean |
(等价) |
.median |
(等价) |
.merge |
(等价) |
.min |
(等价) |
.mktime |
(等价) |
.mode |
NA |
.modulo_kfold_column |
NA |
.moment |
pd.to_datetime() |
.month |
Series.dt.month |
.mult |
.dot |
.na_omit |
.dropna() |
.nacnt |
.isnull().sum() |
.names |
.columns |
.nchar |
.str.len() |
.ncol |
.shape[1] |
.ncols |
.shape[1] |
.nlevels |
.nunique() |
.nrow |
.shape[0] |
.nrows |
.shape[0] |
.num_valid_substrings |
(等价) |
.pop |
(等价) |
.prod |
(等价) |
.quantile |
(等价) |
.rbind |
(等价) |
.refresh |
(等价) |
.relevel |
NA |
.rep_len |
NA |
.round |
(等价) |
.rstrip |
.str.rstrip() |
.runif |
numpy.random.uniform() |
.scale |
sklearn.preprocessing.StandardScaler() |
.sd |
.std |
.set_level |
NA |
.set_levels |
NA |
.set_name |
.rename() |
.set_names |
.rename() |
.shape |
(等价) |
.show |
NA |
.sign |
numpy.sign() |
.signif |
NA |
.sin |
.apply(lambda x: numpy.sin(x), axis=0) |
.sinh |
.apply(lambda x: numpy.sinh(x), axis=0) |
.sinpi |
.apply(lambda x: numpy.sin(numpy.pi * x), axis=0) |
.skewness |
.skew |
.split_frame |
NA |
.sqrt |
.apply(lambda x: numpy.sqrt(x), axis=0) |
.ss |
NA |
.stratified_kfold_column |
sklearn.model_selection.StratifiedKFold |
.stratified_split |
sklearn.model_selection.StratifiedShuffleSplit |
.strsplit |
.str.split |
.structure |
NA |
.sub |
.str.replace() |
.substring |
.str.slice() |
.sum |
(等价) |
.summary |
.describe() |
.table |
.value_counts() |
.tail |
(等价) |
.tan |
.apply(lambda x: numpy.tan(x), axis=0) |
.tanh |
.apply(lambda x: numpy.tanh(x), axis=0) |
.tanpi |
.apply(lambda x: numpy.tan(numpy.pi * x), axis=0) |
.tolower |
(等价) |
.toupper |
.apply(lambda x: x.upper(), inplace=True) |
.transpose |
(等价) |
.trigamma |
scipy.special.polygamma(x, 3) |
.trim |
.str.strip |
.trunc |
(等价) |
.type |
.dtype |
.types |
.dtypes |
.unique |
(等价) |
.var |
(等价) |
.week |
Series.dt.week |
.which |
NA |
.year |
Series.dt.year |
十二、使用建议与注意事项
-
以原表为起点,以源码为准绳:原 cheatsheet 更新于 2017 年,个别行(如
.cosh、.hour)存在笔误,且此后 H2OFrame 新增了tokenize()、concat()、stratified_kfold_column()等方法。迁移时建议以 h2o-py/h2o/frame.py 中的方法签名与 docstring 为最终依据,或通过help(H2OFrame.方法名)查看当前版本的说明。 -
分清“等价”与“NA”:标记为空白的同名方法(如
.mean()、.quantile())语义基本对齐 pandas,可直接照搬调用;标记为NA的方法需要自行实现,其中交叉验证类(kfold_column系列)建议直接使用 H2O 原生的折分配列作为模型参数,而不是强行移植到 sklearn。 -
类型体系差异是主要坑点:H2O 的
enum(类别)列参与建模时会自动展开为因子编码,而 pandas 的object列并不等同于category,导入建模前务必用asfactor()或.astype('category')显式声明。 -
性能差异的本质:H2OFrame 的方法默认在集群端懒执行(
ExprNode表达式树),只有as_data_frame()、get_frame_data()等结果回传操作才把数据拉到本地。因此在跨框架迁移代码时,应尽量把全部清洗与特征工程放在 H2O 端完成、最后一次性导出,避免反复拉取数据造成的性能损失。
如需获取 R 语言与 Python 的对照资料,可进一步阅读同目录下的 H2O_R_Python_Parity.md,其与本文所述 pandas 对照表共同构成了 h2o-3 官方的跨语言、跨生态 API 速查体系。