📌  相关文章
📜  NameError: name 'pd' is not defined - Python 代码示例

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

代码示例3
# import pandas library
from pandas import *
import numpy as np

# create pandas DataFrame
df =  DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
                   columns=['a', 'b', 'c'])

# print dataframe
print(df)