<small id='AU46w'></small><noframes id='AU46w'>

  • <legend id='AU46w'><style id='AU46w'><dir id='AU46w'><q id='AU46w'></q></dir></style></legend>
  • <i id='AU46w'><tr id='AU46w'><dt id='AU46w'><q id='AU46w'><span id='AU46w'><b id='AU46w'><form id='AU46w'><ins id='AU46w'></ins><ul id='AU46w'></ul><sub id='AU46w'></sub></form><legend id='AU46w'></legend><bdo id='AU46w'><pre id='AU46w'><center id='AU46w'></center></pre></bdo></b><th id='AU46w'></th></span></q></dt></tr></i><div id='AU46w'><tfoot id='AU46w'></tfoot><dl id='AU46w'><fieldset id='AU46w'></fieldset></dl></div>

      <tfoot id='AU46w'></tfoot>

          <bdo id='AU46w'></bdo><ul id='AU46w'></ul>

        pandas python中没有名为read_csv的属性

        no attribute named read_csv in pandas python(pandas python中没有名为read_csv的属性)
          <bdo id='5mMgb'></bdo><ul id='5mMgb'></ul>
          <i id='5mMgb'><tr id='5mMgb'><dt id='5mMgb'><q id='5mMgb'><span id='5mMgb'><b id='5mMgb'><form id='5mMgb'><ins id='5mMgb'></ins><ul id='5mMgb'></ul><sub id='5mMgb'></sub></form><legend id='5mMgb'></legend><bdo id='5mMgb'><pre id='5mMgb'><center id='5mMgb'></center></pre></bdo></b><th id='5mMgb'></th></span></q></dt></tr></i><div id='5mMgb'><tfoot id='5mMgb'></tfoot><dl id='5mMgb'><fieldset id='5mMgb'></fieldset></dl></div>
        • <legend id='5mMgb'><style id='5mMgb'><dir id='5mMgb'><q id='5mMgb'></q></dir></style></legend>

          <small id='5mMgb'></small><noframes id='5mMgb'>

              <tfoot id='5mMgb'></tfoot>
                <tbody id='5mMgb'></tbody>

                • 本文介绍了pandas python中没有名为read_csv的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我是机器学习的新手,我正在使用 Python 中的 pandas 创建数据集.我查阅了一个教程,只是在尝试创建数据框的基本代码,但我不断得到以下回溯:

                  I am new to machine learning and am creating a dataset using pandas in Python. I looked up a tutorial and was just trying out a basic code for creating a dataframe, but I keep getting the following trace-back:

                  AttributeError: 'module' 对象没有属性 'read_csv'

                  AttributeError: 'module' object has no attribute 'read_csv'

                  我已将 csv 文件保存为 Excel 13 中的 csv(逗号分隔)格式.这是我的代码:

                  I have saved the csv file in the csv(comma delimited) formatfrom Excel 13. Here's my code:

                      import pandas
                      import csv
                  
                      mydata = pandas.read_csv('foo.csv')
                      target = mydata["Label"]
                  
                      data = mydata.ix[:,:-1]
                  

                  推荐答案

                  工作中有一个名为pandas.py(和/或pandas.pyc)的文件目录,它被导入而不是 pandas 库.删除或重命名文件解决了问题.

                  There was a file named pandas.py (and/or pandas.pyc) in the working directory, which was imported instead of the pandas library. Removing or renaming the file/s solved the problem.

                  这篇关于pandas python中没有名为read_csv的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Is there a way of group by month in Pandas starting at specific day number?( pandas 有从特定日期开始的按月分组的方式吗?)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)

                        <bdo id='hplu5'></bdo><ul id='hplu5'></ul>

                      • <small id='hplu5'></small><noframes id='hplu5'>

                        <i id='hplu5'><tr id='hplu5'><dt id='hplu5'><q id='hplu5'><span id='hplu5'><b id='hplu5'><form id='hplu5'><ins id='hplu5'></ins><ul id='hplu5'></ul><sub id='hplu5'></sub></form><legend id='hplu5'></legend><bdo id='hplu5'><pre id='hplu5'><center id='hplu5'></center></pre></bdo></b><th id='hplu5'></th></span></q></dt></tr></i><div id='hplu5'><tfoot id='hplu5'></tfoot><dl id='hplu5'><fieldset id='hplu5'></fieldset></dl></div>
                          <tfoot id='hplu5'></tfoot>

                            <legend id='hplu5'><style id='hplu5'><dir id='hplu5'><q id='hplu5'></q></dir></style></legend>

                              <tbody id='hplu5'></tbody>