I'm trying to run the following SQL statement (obviously in Python code) in pandas, but am getting nowhere:
select year, contraction, indiv_count, total_words from dataframe
where contraction in ("i'm","we're","we've","it's","they're")
Where contractions
is char
, and year
, indiv_count
, and total_words
are int
.
I'm not too familiar with pandas. How do I create a similar statement in Python?