Giter Club home page Giter Club logo

Comments (5)

cowry5 avatar cowry5 commented on June 14, 2024

Have you solved the problem? I have also encountered this problem

from sr-gnn.

DebonairLi avatar DebonairLi commented on June 14, 2024

Have you solved the problem? I have also encountered this problem
哈哈哈,最简答的方法就是打开那个文件把那几个表头加上去。。。文件可能比较大,打开以及修改需要时间。就酱紫

from sr-gnn.

cowry5 avatar cowry5 commented on June 14, 2024

THX :)
谢谢,哈哈

from sr-gnn.

Weiwei-Tian avatar Weiwei-Tian commented on June 14, 2024

Have you solved the problem? I have also encountered this problem
哈哈哈,最简答的方法就是打开那个文件把那几个表头加上去。。。文件可能比较大,打开以及修改需要时间。就酱紫

请问用什么软件打开修改呀?

from sr-gnn.

YinghongZhang avatar YinghongZhang commented on June 14, 2024

You can add fieldnames at codeline 31, csv.DictReader parameters, like this:
reader = csv.DictReader(f, fieldnames = ['session_id', 'timestamp', 'item_id', 'category'], delimiter=',')
also, you can use csv.DictWriter to write header to csv file, but it's more easy to just add headers when read file.

from sr-gnn.

Related Issues (20)

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.