📅  最后修改于: 2022-03-11 14:46:21.546000             🧑  作者: Mango
import pandas as pd
data = {
'Name': ['A', 'B', 'C', 'D', 'E', 'F'],
'Age': [10, 20, 30, 40, 50, 60]
}
df = pd.DataFrame(data)
print(df.sample(n=2)) # where 2 is the number of random rows