Giter Site home page Giter Site logo

Comments (6)

PatrickChodowski avatar PatrickChodowski commented on September 3, 2024 1

Hi, I removed the conversion to int completely, hopefully this helps and doesnt break anything

from nbar.

PatrickChodowski avatar PatrickChodowski commented on September 3, 2024

Hello,

Thank you for your feedback! I will have a look

from nbar.

PatrickChodowski avatar PatrickChodowski commented on September 3, 2024

Version 2.1.2 should fix the problem

from nbar.

peteowen1 avatar peteowen1 commented on September 3, 2024

Version 2.1.2 should fix the problem

Version 2.1.2 hasn't fixed the problem.
The problem seems to be when you use:

mutate_at(vars(- matches('_pct|spd|dist|_frequency|pie|per|_freq|_rating')), c_to_int)

the c_to_int function converts all these to an integer so a frequency of 0.04 gets converted to 0.

I don't get why c_to_int is needed at all??
Why do you need to convert numerics to integers can't we just leave them as numeric?

p.s. just recently stumbled upon the package and love your work, couldn't find a good scraper elsewhere and this package does everything I was looking for. Hoping by commenting I can contribute to it in someway!

from nbar.

PatrickChodowski avatar PatrickChodowski commented on September 3, 2024

Hi, thanks for the feedback

originally with c_to_int I wanted to convert ID-like columns to integers (player_id, game_id, etc.) from floats

let me have a look again at it

from nbar.

peteowen1 avatar peteowen1 commented on September 3, 2024

Someone just opened up an issue with the same problem hahah

#6

I think I would just specify the ID columns to be integers and let all the other columns be numeric unless there's a good reason not to I suppose.
Especially since the default is per-game numbers which in general are always going to be a decimal therefore converting to integer will cause a loss of information.

from nbar.

Related Issues (5)

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.