我的main.py
文件中有这句话:
import pandas as pd
from modules.my_self_defined import *
input='1.csv'
df=just_an_example(input)
在./modules/my_self_defined.py中:
def just_an_example(csv_file):
a=pd.read_csv(csv_file)
return a
然后,当我运行文件时,它说pd在./modules/my_self_defined.py中没有定义
我如何使它工作?