Artificial Intelligence

白天 夜间 首页 下载 阅读记录
  我的书签   添加书签   移除书签

Examples

浏览 89 扫码 分享 2023-11-26 15:41:11
  • File reading and writing
    • read_csv
  • drawing
    • DataFrame.plot

    File reading and writing

    read_csv

    1. # header= None
    2. dataSet = pd.read_csv('ex1data1.txt', header=None, names=['Population', 'Profit'])
    3. dataSet.head()

    屏幕快照 2020-07-17 下午8.53.40.png

    drawing

    DataFrame.plot

    resources: https://blog.csdn.net/brucewong0516/article/details/80524442

    1. dataSet.plot(kind='scatter', x='Population', y='Profit')
    2. plt.show()

    屏幕快照 2020-07-17 下午8.53.06.png

    若有收获,就点个赞吧

    0 人点赞

    上一篇:
    下一篇:
    • 书签
    • 添加书签 移除书签
    • Python library
      • Matplotlib
        • Examples
      • Pandas
        • Examples
      • Nunpy
        • Examples
    • Machine learning
      • Andrew Ng courses
        • homework
          • Linear Regression
      • algorithm
        • Regression
        • KNN
        • Decision Tree
        • Naive Bayes
        • Logisitic Return
        • Support Vector Machines(SVM)
      • scikit-learn
        • Decisoin Tree
    暂无相关搜索结果!

      让时间为你证明

      展开/收起文章目录

      分享,让知识传承更久远

      文章二维码

      手机扫一扫,轻松掌上读

      文档下载

      请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
      PDF文档 EPUB文档 MOBI文档

      书签列表

        阅读记录

        阅读进度: 0.00% ( 0/0 ) 重置阅读进度

          思维导图备注