DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
dataframe select entries that are in a list
df = pd.DataFrame({'A': [5,6,3,4], 'B': [1,2,3,5]}) df[df['A'].isin([3, 6])]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#dataframe
#select
#entries
#list
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit