我想使用Pandas包在Python中创建和保存表。
到目前为止,这是我的代码:
import pandas as pd
column1 = ['Measured Set', '1. set', '2. set', '3. set']
column2= ['Breached parameter(s) (Number of breaches / %)', 3, 3, 3]
column3 = ['Breached parameter(s) (Number of breaches / %)', 3, 3, 3]
data = {
'Sensor': column1,
'Sensor 1': column2,
'Sensor 2': column3,
}
df = pd.DataFrame(data)
df
所以我想:
有人可以帮我解决这个问题吗?