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-798772%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EMejora%20tu%20juego%20de%20Python%20con%20JMP%3A%20limpieza%20de%20datos%20con%20Python%20y%20JMP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798772%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EEntonces%2C%20si%20desea%20obtener%20m%C3%A1s%20informaci%C3%B3n%20sobre%20la%20integraci%C3%B3n%20de%20Python%20y%20JMP%2C%20primero%20aseg%C3%BArese%20de%20estar%20al%20d%C3%ADa%20mirando%20el%20video%20relacionado%2C%20si%20a%C3%BAn%20no%20lo%20ha%20hecho.%3C%2FP%3E%0A%3CP%3EUn%20grupo%20de%20ingenieros%20de%20sistemas%20de%20JMP%20ha%20desarrollado%20una%20serie%20de%20blogs%20que%20muestran%20la%20facilidad%20con%20la%20que%20se%20pueden%20integrar%20JMP%20y%20Python%20para%20manejar%20tareas%20cotidianas%2C%20como%20la%20limpieza%20de%20datos%2C%20as%C3%AD%20como%20an%C3%A1lisis%20y%20modelado%20m%C3%A1s%20avanzados.%20Un%20agradecimiento%20especial%20a%20Yasmine%20Hajar%20(%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F43441%22%20target%3D%22_blank%22%3E%40yasmine_hajar%3C%2FA%3E%20)%20y%20Wendy%20Tseng%20(%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F13754%22%20target%3D%22_blank%22%3E%40wendytseng%3C%2FA%3E%20)%20por%20su%20ayuda%20con%20la%20codificaci%C3%B3n%20Python%20utilizada%20en%20el%20video%20y%20el%20blog.%3C%2FP%3E%0A%3CP%3EEn%20el%20video%2C%20mostramos%20c%C3%B3mo%2C%20usando%20solo%20un%20mouse%20y%20los%20ojos%2C%20encontrar%20posibles%20valores%20at%C3%ADpicos%20y%20luego%20eliminarlos%20de%20la%20tabla%20de%20datos.%20Tambi%C3%A9n%20aprender%C3%A1%20a%20analizar%20los%20valores%20faltantes%20y%2C%20si%20es%20necesario%2C%20a%20imputar%20valores%20como%20sustitutos%20para%20ver%20el%20an%C3%A1lisis%20resultante%20si%20los%20datos%20no%20estuvieran%20faltantes.%3C%2FP%3E%0A%3CP%3EJMP%20y%20Python%20se%20han%20complementado%20durante%20varios%20a%C3%B1os%20y%2C%20con%20el%20lanzamiento%20de%20JMP%2018%2C%20es%20mucho%20m%C3%A1s%20f%C3%A1cil%20integrar%20el%20an%C3%A1lisis%20de%20Python%20con%20la%20excelente%20visualizaci%C3%B3n%20de%20datos%20de%20JMP.%20Sin%20embargo%2C%20y%20no%20soy%20muy%20imparcial%20en%20este%20punto%2C%20la%20limpieza%20de%20datos%20en%20JMP%20es%20mucho%20m%C3%A1s%20f%C3%A1cil%20que%20en%20Python%20por%20una%20raz%C3%B3n%20muy%20b%C3%A1sica%3A%20la%20codificaci%C3%B3n.%3C%2FP%3E%0A%3CP%3EPor%20ejemplo%2C%20con%20JMP%20puede%20escanear%20visualmente%20valores%20at%C3%ADpicos%20dentro%20de%20la%20plataforma%20de%20distribuci%C3%B3n%20en%20un%20modo%20univariado%20y%20dentro%20de%20la%20plataforma%20multivariada%20en%20un%20sentido%20multivariado.%20Existe%20la%20funcionalidad%20para%20escanear%20valores%20at%C3%ADpicos%20T2%20de%20Hoteling%20para%20todos%20los%20datos%20de%20inter%C3%A9s%20utilizando%20la%20plataforma%20de%20gr%C3%A1fico%20de%20control%20multivariado%20impulsado%20por%20modelos%2C%20pero%20lo%20dejaremos%20para%20otro%20momento.%20Nuevamente%2C%20mire%20el%20video%20adjunto%20para%20ver%20toda%20esta%20capacidad%20en%20acci%C3%B3n.%3C%2FP%3E%0A%3CP%3EMientras%20tanto%2C%20aqu%C3%AD%20hay%20una%20lista%20de%20algunas%20de%20las%20opciones%20de%20limpieza%20de%20datos%20en%20Python%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EExtraiga%20patrones%20espec%C3%ADficos%20de%20datos%20de%20texto%2C%20como%20direcciones%20de%20correo%20electr%C3%B3nico%2C%20n%C3%BAmeros%20de%20tel%C3%A9fono%20o%20fechas.%3C%2FLI%3E%0A%3CLI%3EEliminar%20caracteres%20o%20subcadenas%20no%20deseados%20de%20los%20datos%20de%20texto.%3C%2FLI%3E%0A%3CLI%3EReemplazar%20patrones%20o%20subcadenas%20espec%C3%ADficos%20con%20nuevos%20valores.%3C%2FLI%3E%0A%3CLI%3EEstandarice%20los%20datos%20de%20texto%20convirtiendo%20todos%20los%20caracteres%20a%20min%C3%BAsculas%20o%20may%C3%BAsculas.%3C%2FLI%3E%0A%3CLI%3EIdentificar%20y%20eliminar%20duplicados%20seg%C3%BAn%20datos%20de%20texto.%3C%2FLI%3E%0A%3CLI%3ECambie%20el%20nombre%20de%20las%20columnas%20a%20un%20conjunto%20de%20etiquetas%20m%C3%A1s%20reconocibles.%3C%2FLI%3E%0A%3CLI%3EEliminar%20columnas%20innecesarias%20en%20un%20DataFrame.%3C%2FLI%3E%0A%3CLI%3ECambiar%20el%20%C3%ADndice%20de%20un%20DataFrame.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ELas%20primeras%20cinco%20opciones%20se%20pueden%20realizar%20r%C3%A1pidamente%20con%20la%20opci%C3%B3n%20de%20recodificaci%C3%B3n%20de%20JMP.%20Adem%C3%A1s%2C%20si%20se%20utiliza%20la%20opci%C3%B3n%20Nombres%20de%20columnas%20del%20men%C3%BA%20desplegable%20Columnas%2C%20solo%20se%20necesitan%20unos%20pocos%20clics%20para%20cambiar%20el%20nombre%20de%20las%20columnas.%3C%2FP%3E%0A%3CP%3EEliminar%20columnas%20innecesarias%20en%20una%20tabla%20de%20datos%20es%20tan%20f%C3%A1cil%20como%20seleccionar%20las%20columnas%20de%20inter%C3%A9s%2C%20hacer%20clic%20derecho%20en%20cualquiera%20de%20los%20encabezados%20de%20columna%20seleccionados%20y%20elegir%20Eliminar%20columnas.%3C%2FP%3E%0A%3CP%3ECuando%20se%20trata%20de%20encontrar%20valores%20faltantes%20e%20imputar%20datos%20faltantes%2C%20JMP%20es%20l%C3%ADder.%20La%20localizaci%C3%B3n%20y%20el%20aislamiento%20de%20valores%20at%C3%ADpicos%20tambi%C3%A9n%20son%20sencillos%20en%20JMP%2C%20como%20puede%20ver%20a%20continuaci%C3%B3n.%3C%2FP%3E%0A%3CP%3EA%20continuaci%C3%B3n%20se%20muestra%20el%20c%C3%B3digo%20Python%20para%20abrir%20una%20tabla%20JMP%20y%20explorar%20valores%20at%C3%ADpicos%20y%20faltantes.%20Debajo%20se%20muestra%20una%20imagen%20del%20marco%20de%20datos%20y%20parte%20de%20la%20salida%20para%20valores%20at%C3%ADpicos%20y%20faltantes.%20Tenga%20en%20cuenta%20que%20los%20valores%20at%C3%ADpicos%20en%20Python%20se%20determinan%20utilizando%20una%20puntuaci%C3%B3n%20Z%20con%20un%20valor%20absoluto%20mayor%20que%203.%20Con%20base%20en%20este%20criterio%2C%20Python%20encontr%C3%B3%20valores%20at%C3%ADpicos%20para%20pr%C3%A1cticamente%20todas%20las%20columnas%20continuas%20en%20la%20tabla%20de%20datos.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LandraRobertson_0-1726683807876.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LandraRobertson_0-1726683807876.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68429i77C3AD9A48C9E04C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LandraRobertson_0-1726683807876.png%22%20alt%3D%22LandraRobertson_0-1726683807876.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LandraRobertson_1-1726684271650.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LandraRobertson_1-1726684271650.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68432iC93973817FCABAE9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LandraRobertson_1-1726684271650.png%22%20alt%3D%22LandraRobertson_1-1726684271650.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LandraRobertson_2-1726684271652.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LandraRobertson_2-1726684271652.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68431iD86D803C9373372A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LandraRobertson_2-1726684271652.png%22%20alt%3D%22LandraRobertson_2-1726684271652.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LandraRobertson_3-1726684271654.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LandraRobertson_3-1726684271654.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68430iE536AAC238A66530%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LandraRobertson_3-1726684271654.png%22%20alt%3D%22LandraRobertson_3-1726684271654.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EPara%20analizar%20los%20valores%20at%C3%ADpicos%20en%20JMP%2C%20siga%20este%20ejemplo%2C%20que%20utiliza%20Arrythmia.jmp%20del%20%C3%ADndice%20de%20datos%20de%20muestra%20de%20JMP.%20Vaya%20a%20Analizar%20%26gt%3B%20Filtrado%20%26gt%3B%20Explorar%20valores%20at%C3%ADpicos.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LandraRobertson_4-1726684359590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LandraRobertson_4-1726684359590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68434i664F558F6EC735D0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LandraRobertson_4-1726684359590.png%22%20alt%3D%22LandraRobertson_4-1726684359590.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LandraRobertson_5-1726684359593.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LandraRobertson_5-1726684359593.png%22%20style%3D%22width%3A%20298px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68433iDFABF18FE7268F74%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LandraRobertson_5-1726684359593.png%22%20alt%3D%22LandraRobertson_5-1726684359593.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LandraRobertson_6-1726684359596.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LandraRobertson_6-1726684359596.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68435iC3645120B799D97C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LandraRobertson_6-1726684359596.png%22%20alt%3D%22LandraRobertson_6-1726684359596.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LandraRobertson_7-1726684359601.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22LandraRobertson_7-1726684359601.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68436i2591871D61AFD2BE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LandraRobertson_7-1726684359601.png%22%20alt%3D%22LandraRobertson_7-1726684359601.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPuede%20decidir%20qu%C3%A9%20datos%20son%20realmente%20at%C3%ADpicos%20y%20puede%20recalcular%20f%C3%A1cilmente%20los%20rangos%20de%20valores%20at%C3%ADpicos%20con%20solo%20un%20par%20de%20clics.%20JMP%20recomienda%20que%20nunca%20elimine%20por%20completo%20los%20datos%20de%20su%20conjunto%20de%20datos%2C%20debido%20a%20posibles%20registros%20de%20auditor%C3%ADa.%20Siempre%20puede%20Ocultar%20y%20excluir%20datos%20en%20JMP%20para%20mantenerlos%20fuera%20de%20sus%20an%C3%A1lisis%20sin%20eliminarlos%20del%20conjunto%20de%20datos.%20Ocultar%20datos%20en%20Python%20requiere%20m%C3%A1s%20codificaci%C3%B3n%20y%2C%20muy%20probablemente%2C%20significa%20que%20nadie%20podr%C3%A1%20ver%20los%20datos.%3C%2FP%3E%0A%3CP%3EPara%20explorar%20valores%20faltantes%20en%20JMP%2C%20abra%20la%20tabla%20de%20datos%2C%20vaya%20a%20Analizar%20%26gt%3B%20Detecci%C3%B3n%20%26gt%3B%20Explorar%20valores%20faltantes.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-798772%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EUn%20grupo%20de%20ingenieros%20de%20sistemas%20de%20JMP%20demuestra%20lo%20f%C3%A1cil%20que%20es%20integrar%20JMP%20y%20Python%20para%20manejar%20tareas%20cotidianas%20como%20la%20limpieza%20de%20datos%20y%20an%C3%A1lisis%20y%20modelado%20m%C3%A1s%20avanzados.%20El%20primero%20de%20esta%20serie%20de%20blogs%20profundiza%20en%20la%20limpieza%20de%20datos%20en%20JMP%20y%20la%20transferencia%20de%20datos%20a%20Python.%20JMP%20y%20Python%20han%20sido%20complementarios%20durante%20varios%20a%C3%B1os%20y%2C%20con%20el%20lanzamiento%20de%20JMP%2018%2C%20es%20mucho%20m%C3%A1s%20f%C3%A1cil%20integrar%20el%20an%C3%A1lisis%20de%20Python%20con%20la%20excelente%20visualizaci%C3%B3n%20de%20datos%20en%20JMP.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-798772%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3ECombinaci%C3%B3n%20y%20limpieza%20de%20datos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Choose Language Hide Translation Bar
Level Up your Python game with JMP: Cleaning data with Python and JMP

So, you’d like to learn more about Python and JMP integration. First, make sure you are up to speed by watching the related video, if you haven’t already.

A group of JMP SEs have developed a series of blogs that showcase the ease with which JMP and Python can be integrated to handle everyday tasks, such as cleaning data, as well as more advanced analysis and modeling. A special thanks to Yasmine Hajar  (@yasmine_hajar) and Wendy Tseng (@wendytseng) for their help with the Python coding used in the video and blog. 

In the video, we show how – using just a mouse and eyes – to find potential outliers and then remove them from the data table. You also learn how to analyze for missing values and, if necessary, impute values as surrogates to see the resulting analysis if the data weren’t not missing.

JMP and Python have been complementary for several years now, and with the release of JMP 18, it is much easier to integrate Python analytics with the excellent data visualization in JMP. However, and I am highly biased here, data cleaning in JMP is much easier than it is in Python for one very basic reason: coding.

As an example, with JMP you can visually scan for outliers within the Distribution platform in a univariate mode, and within the Multivariate platform in a multivariate sense. There is the functionality to scan for Hoteling’s T2 outliers for all data of interest using the Model Driven Multivariate Control Chart platform, but we will save that for another time. Again, please watch the accompanying video to see all this capability in action.

In the meantime, here is a list of some of the data cleaning options in Python:

  • Extract specific patterns from text data, such as email addresses, phone numbers, or dates.
  • Remove unwanted characters or substrings from text data.
  • Replace specific patterns or substrings with new values.
  • Standardize text data by converting all characters to lowercase or uppercase.
  • Identify and remove duplicates based on text data.
  • Rename columns to a more recognizable set of labels.
  • Drop unnecessary columns in a DataFrame.
  • Change the index of a DataFrame.

The first five options can be done quickly with JMP’s recode option. Plus, using the Column Names option under the Cols menu dropdown, it only takes a few clicks to rename columns. 

Dropping unnecessary columns in data table is as easy as selecting the columns of interest, then right-clicking on any of the selected column headers and choosing Delete columns. 

When it comes to finding missing values and imputing missing data, JMP leads the way. Locating and sequestering outliers are also straightforward in JMP, which you can see below. 

Below is the Python code to open a JMP table and explore for outliers and missing values. Below that is an image of the data frame and some of the output for outliers and missing values. Note that outliers in Python are determined using a Z-score with an absolute value greater than 3. Based on this criterion, Python found outliers for virtually every continuous column in the data table.

LandraRobertson_0-1726683807876.png

 

LandraRobertson_1-1726684271650.png

 

LandraRobertson_2-1726684271652.png

 

LandraRobertson_3-1726684271654.png

 

To parse for outliers in JMP, follow this example, which uses Arrythmia.jmp from the JMP sample data index. Go to Analyze > Screening > Explore Outliers.  

LandraRobertson_4-1726684359590.png

 

LandraRobertson_5-1726684359593.png

LandraRobertson_6-1726684359596.png

LandraRobertson_7-1726684359601.png

You can decide which data is truly an outlier, and you can easily recalculate the outlier ranges with just a couple of clicks. JMP recommends that you never completely remove data from your data set, due to potential audit trails. You can always Hide & Exclude data in JMP to keep it out of your analyses without deleting it from the data set. Hiding data in Python requires more coding and most likely means that the data cannot be seen by anyone.

To explore missing values in JMP, open the data table, go to Analyze > Screening > Explore Missing Values. 

Last Modified: Sep 19, 2024 10:00 AM