Code Monkey home page Code Monkey logo

Comments (9)

JoshuaC3 avatar JoshuaC3 commented on May 13, 2024 1

IMO, I prefer using the .pipe method on janitor function, as opposed to the jn.DataFrame with methods so this doesn't seem 100% natural to me. That said, I use the df.plot functionality a lot.

Also, missingno is already very easy to use,

import missingno as mn
mn.matrix(df)

This can be piped as well,

df.pipe(mn.matrix)

Thinking about this, I makes most sense to add this if we wish to extend functionality. I will have a think about how we could do this in janitor and post back.

from pyjanitor.

souravsingh avatar souravsingh commented on May 13, 2024

I am willing to work on this.

from pyjanitor.

ericmjl avatar ericmjl commented on May 13, 2024

Thanks @souravsingh! Looking forward to the PR.

from pyjanitor.

JoshuaC3 avatar JoshuaC3 commented on May 13, 2024

I assume there has been no PR for this? If so, I am happy to pick this up if still desired.

My only question is, how would this differ from just using missingno itself? What added functionality would we like to see? Thanks :)

from pyjanitor.

ericmjl avatar ericmjl commented on May 13, 2024

@JoshuaC3 thanks for pinging in on this one! At the moment, I haven't had the bandwidth to give this more thought, so I'm very open to discussing the most appropriate use cases. What ideas do you have?

A few points I can think off the top of my head right now that might be relevant:

  1. Janitor DataFrames inherit directly from Pandas dataframes and merely add in data cleaning convenience methods, so janitorDFs and pandasDFs are extremely compatible.
  2. One thought that I ever once had was "just wrap missingno" --> the key thing that Janitor provides is method chaining, BUT method chaining might not be a relevant pattern for data sanity checks.

from pyjanitor.

ericmjl avatar ericmjl commented on May 13, 2024

This can be piped as well,
df.pipe(mn.matrix)

Oooh cool stuff! I didn't realize that, actually. Thanks for sharing this!

from pyjanitor.

ericmjl avatar ericmjl commented on May 13, 2024

@JoshuaC3 I think this should be shown inside an example Jupyter notebook! What do you think? We have a bunch of notebooks already present, and can show how we go from data that is dirty (and has nullity) to data that is clean and densely populated!

from pyjanitor.

dancassin avatar dancassin commented on May 13, 2024

Once the PR #6 in pyjanitor-examples is accepted, then I believe this issue can be closed as well.

from pyjanitor.

ericmjl avatar ericmjl commented on May 13, 2024

Thank you, @dancassin! 🎉

from pyjanitor.

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.