📜  pandas 的列数 - Python 代码示例

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

代码示例5
import pandas as pd
df = pd.DataFrame({"pear": [1,2,3], "apple": [2,3,4], "orange": [3,4,5]})

len(df.columns)