DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas query return column
df_new = df.query('col1==1 & col2=="x" ')[['col1', 'col3']]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#query
#return
#column
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit