ContributePreguntasPublicacionesEtiquetas
VIKEnut'
Iniciar sesiónRegistrarse

Es

РусскийPolskiDeutschPortuguês

Tema oscuro

Escribir
Iniciar sesiónRegistrarse

Tema oscuro

Es

РусскийPolskiDeutschPortuguês

¡Eres muy activo! ¡Es genial!

Regístrese para continuar usando todas las funciones de Techfeed

Registrarse

¿Ya estás registrado?SignInAction

Etiquetas Populares

jmsserializerbundlejpasswordfieldhpetwaitpidzeroconfxmlnodemazespringlayoutdocutilsreversingexception-notificationzplwebmailstdbindrjsresource-leakrust-obsoletegwidgetsko-custom-bindingrestrictions

Preguntas relacionadas

2

¿Cómo escribir archivos wav estéreo en Python?

2

python argparse: ¿Cómo puedo mostrar la ayuda automáticamente en caso de error?

3

salida del subproceso de Python sin \ n

3

Carga de datos usando matrices en Python

5

pd.rolling_mean está en desuso - alternativas para ndarrays

Aug 15, 2013, 11:55 AM
 
pythonnumpyselectdataframepandas

¿Cómo verificar si un valor está en la lista en la selección del marco de datos de pandas?

Se ve feo

df_cut = df_new[
             (
             (df_new['l_ext']==31) |
             (df_new['l_ext']==22) |
             (df_new['l_ext']==30) |
             (df_new['l_ext']==25) |
             (df_new['l_ext']==64)
             )
            ]

No funciona:

df_cut = df_new[(df_new['l_ext'] in [31, 22, 30, 25, 64])]

¿Existe una solución elegante y funcional del "problema" anterior?

Respuestas a la pregunta(2)

Su respuesta a la pregunta

Preguntas populares

0 la respuesta

Creando un script de calculadora

0 la respuesta

¿Qué significa N 'en un script SQL? (el usado antes de los caracteres en el script de inserción)

0 la respuesta

consultas de carga impaciente con GORM / Hibernate

0 la respuesta

ECONNRESET al abrir una gran cantidad de conexiones en un período de tiempo reducido

0 la respuesta

convertir byte [] a imagen

© 2020. Todos los derechos reservados
Hecho con amor 

Es

РусскийPolskiDeutschPortuguês