df = pd.DataFrame({"value1":np.random.rand(10)*20, 'value2':np.random.rand(10)*100})
时间: 2024-05-20 22:17:08 浏览: 72
dataframe设置两个条件取值的实例
This code creates a pandas DataFrame with two columns named "value1" and "value2". The "value1" column contains randomly generated values between 0 and 20, while the "value2" column contains randomly generated values between 0 and 100. There are 10 rows in the DataFrame.
阅读全文