cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-783644%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESelect%20cols%20where%20null%2C%20based%20on%20other%20col's%20classification%20AvB%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783644%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETrying%20to%20brainstorm%20this.%20I%20have%20a%20big%20data%20set%20with%20a%20grouping%20col%20A%20vs%20B%2C%20then%20hundreds%20of%20data%20feature%20cols.%20One%20problem%20is%20that%20some%20of%20the%20cols%20only%20have%20data%20for%20one%20group%20or%20the%20other%20and%20thus%20aren't%20useful%2C%20so%20I%20want%20to%20select%20and%20exclude%20those%20cols.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20would%20I%20script%3A%26nbsp%3Bsearch%20group%20of%20cols%20when%20all%20rows%20%3D%20null%20for%20any%20of%20the%20groups%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-783644%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomation%20and%20Scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBasic%20Data%20Analysis%20and%20Modeling%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783657%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Select%20cols%20where%20null%2C%20based%20on%20other%20col's%20classification%20AvB%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783657%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20might%20want%20to%20check%20out%20if%20Explore%20Missing%20Values%20is%20able%20to%20solve%20your%20problem%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1724427245516.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1724427245516.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1724427245516.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67468iEAB08A58327765DF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1724427245516.png%22%20alt%3D%22jthi_0-1724427245516.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783659%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Select%20cols%20where%20null%2C%20based%20on%20other%20col's%20classification%20AvB%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783659%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAnd%20maybe%20even%20more%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2F%23page%2Fjmp%2Fview-patterns-of-missing-data-in-data-tables.shtml%3Fos%3Dwin%26amp%3Bsource%3Dapplication%23ww731233%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMissing%20Data%20Pattern%3C%2FA%3E%20(link%20for%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.0%2F%23page%2Fjmp%2Flaunch-the-explore-missing-values-platform.shtml%3Fos%3Dwin%26amp%3Bsource%3Dapplication%23ww267915%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EExplore%20missing%20values%3C%2FA%3E)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Select cols where null, based on other col's classification AvB?

Trying to brainstorm this. I have a big data set with a grouping col A vs B, then hundreds of data feature cols. One problem is that some of the cols only have data for one group or the other and thus aren't useful, so I want to select and exclude those cols.

 

How would I script: search group of cols when all rows = null for any of the groups

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Select cols where null, based on other col's classification AvB?

You might want to check out if Explore Missing Values is able to solve your problem

jthi_0-1724427245516.png

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Select cols where null, based on other col's classification AvB?

You might want to check out if Explore Missing Values is able to solve your problem

jthi_0-1724427245516.png

-Jarmo
jthi
Super User

Re: Select cols where null, based on other col's classification AvB?

And maybe even more Missing Data Pattern (link for Explore missing values)

-Jarmo