Coder Social home page Coder Social logo

Comments (3)

alastairrushworth avatar alastairrushworth commented on June 24, 2024 1

Thanks again for the original report. I've now pushed a change that should allow sorting and filtering of the outputs of inspect_cat() to be respected by the downstream show_plot() call.

from inspectdf.

alastairrushworth avatar alastairrushworth commented on June 24, 2024

Hi @RoelVerbelen. I think the issue of using arrange() causing the downstream plot to have distorted label was fixed by a previous commit. Please let me know if it hasn't.

You also point out that if jsd is NA that the column comparison is dropped from the graphic. I'm curious about the cases that might have caused this to happen - did you see a specific instance of this? One case where this happens is where the column has different types in the two data frames, in which case I think dropping from the graphic could make sense. But that may not be true in general...

Once again, thanks for the feedback and reports 😊

from inspectdf.

RoelVerbelen avatar RoelVerbelen commented on June 24, 2024

Thanks again @alastairrushworth. In latest commit version, the labels are back but the arranging is completely ignored. Plotting is always done with the variable names sorted alphabetically. What would be the recommended approach to reorder the variables on the y-axis based on their corresponding jsd value?

I don't remember unfortunately how I ended up getting missing values for jsd before. I tried creating examples for the starwars data where one version of the data has 0 observations for some factor levels, thinking it would cause a division by 0 or log(0) in the jsd formula, but these scenarios seem to set it to 1. Also the trivial example where a factor is always missing resulted in a jsd of 1. I'll create a new issue if I run into missing values for jsd again.

from inspectdf.

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.