Git Product home page Git Product logo

python_basic-2020-7-23-10-44-19-327's Introduction

背景

MovieLens数据集是一个广泛用来研究推荐系统算法的一个数据集。这个数据集包含了来自电影推荐网站多年积累的数据。我们将基于这个数据集练习数据的处理和分析。

grouplens 下载数据集 MovieLens 1M Dataset。 数据集包含6个文件:

  • tags.csv 用户给电影打的标签:
    • userId
    • movieId
    • tag
    • timestamp
  • ratings.csv 用户给电影的评分:
    • userId
    • movieId
    • rating
    • timestamp
  • movies.csv 电影信息:
    • movieId
    • title
    • genres
  • links.csv 链接到其他资源的id:
    • movieId
    • imdbId
    • tmbdId

需求

读取rates.csv文件,完成:

  1. 将每1分做为一档,电影的评分共分为5档,(0:1], (1,2], (2, 3], (3, 4], (4, 5], 通过pandas包求出每个评分档共有多少部电影

  2. 添加一个comment列,对4分以上的电影标‘推荐’,其他标‘不推荐’,输出到一个comment.csv中

提交方式

github工程源代码文件链接+结果截图

python_basic-2020-7-23-10-44-19-327's People

Contributors

linwenjun avatar

Watchers

 avatar  avatar

Forkers

pufftart

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.