📜  pandas 示例行 - Python 代码示例

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

代码示例1
# To sample a fixed number of rows
df.sample(n = 100)

# To sample a fraction of rows
df.sample(frac = 0.5)