python中的pandas已经有了、但是无法引用_无法使用pandas在python3中加载csv文件

在尝试使用pandas的`pd.read_csv()`加载CSV文件时遇到FileNotFoundError。问题在于文件可能不在Python脚本的当前工作目录中,或者路径不正确。解决方案包括检查当前工作目录并使用绝对路径来指定文件位置。
摘要由CSDN通过智能技术生成

Hi guys I don't know why but pandas really can't manage to load my csv file in my python code. The file is in the same folder of my python project, I'm working with tensorflow, theano, pandas, numpy and matplotlib libraries.

It's been 2 hrs and I tried uninstalling everything and reinstalling once again using the pip3 commands. I uninstalled tensorflow, pandas, theano, numpy, and even python2 and python3. Nothing. I also updated and upgraded my linux distro. useless.

this is the error I keep getting when I execute the part of my code in the Spyder3 internal terminal:

dataset = pd.read_csv('Churn_Modelling.csv')

Traceback (most recent call last):

File "", line 1, in

dataset = pd.read_csv('Churn_Modelling.csv')

File "/usr/local/lib/python3.6/dist-packages/pandas/io/parsers.py", line 709, in

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值