📜  从切片创建新数据框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:31.786000             🧑  作者: Mango

代码示例1
# You need copy with boolean indexing, new DataFrame constructor is not necessary:

d2 = d1[d1.a > 1].copy()