USING LIKE inside pandas.query()

后端 未结 6 585
庸人自扰
庸人自扰 2020-12-13 18:22

I have been using Pandas for more than 3 months and I have an fair idea about the dataframes accessing and querying etc.

I have got an requirement wherein I wanted t

6条回答
  •  情话喂你
    2020-12-13 18:39

    I know this is a pretty old post but I'm just going to leave this here for those who are looking for answers.

    df.query('column_name == "value"')
    

    This worked for me when I needed to query the dataframe for matching string.

提交回复
热议问题