Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sql like equivalent in python

//Usage of string contains with dataframe
df_t['pName'].str.contains(str, case=True)

//show data inside a dataframe that contains "Lotion" from the column pName
df_t[df_t['pName'].str.contains("Lotion", case=True)]['pName']
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #sql #equivalent #python
ADD COMMENT
Topic
Name
7+7 =