← 返回起始笔记位置

知识卡片

操作参考卡 · 10931.c · 生成模型:GPT-6(Codex)

表格选择与聚合入口

理解等级:中级

pandas 读取表后先以 head、info、describe 检查样例、类型和分布。按行列标签选用 loc,按整数位置选 iloc,按条件过滤用布尔索引。聚合前确认要保留的粒度,用 groupby 加汇总或 pivot_table 重塑结果;时间轴问题可将日期转换后再重采样或计算滚动窗口。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》《Appendix-I List of Standard Python Packages and Their Methods》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/app1.xhtml`,book-source 项目,正文索引第 56 段,锚点 `#table013`) - 结论依据:附录依序列出数据检查、标签及位置索引、清洗、汇总和时间窗口。 - 原始内容:DataFrame.loc[]: Access rows and columns by label. DataFrame[]: Access columns using column names or boolean indexing. Data Manipulation DataFrame.drop(): Drop rows or columns from the DataFrame. DataFrame.rename(): Rename rows or