Giter Site home page Giter Site logo

Comments (2)

tshort avatar tshort commented on August 20, 2024

I've played with this some more. One area of concern has been display and user confusion. For the most part, that can be minimized. It's a three-line change to base to allow separate display of NaN's and NA's. So, even though there are different internal NA representations, the user can mainly use NA, and everything will be handled transparently.

Another issue I found is with floating-point comparisons. With NA's (or NaN's), a floating point comparison always evaluates to false. Here's an example:

julia> 1.0 .< [NA, 3., NA]
3-element Bool Array:
 false
  true
 false

julia> 1.0 .>= [NA, 3., NA]
3-element Bool Array:
 false
 false
 false

In practice, I don't think it's a big deal, but it is confusing. Pandas has this same issue, and I don't see where they even document it.

A separate floating-point bitstype could be created to solve this, but for comparison operations, it would have to return a type that could contain NA's. R users are used to handling the NA case in comparisons, but here, if one forgets, answers could be wrong.

from dataframes.jl.

garborg avatar garborg commented on August 20, 2024

Closing in favor of recent discussion about NullableArray design.

from dataframes.jl.

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.