Every line of 'pandas select columns containing string' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
605 def __init__(self, df): 606 self._df = df
197 def select_column(df, token): 198 column_name = token.value 199 if "." in column_name: 200 table_name, column_name = column_name.split(".", 1) 201 #TODO: Assert table name is correct 202 #TODO: Catch KeyError exception and raise error saying column does not exist 203 return df[column_name]
406 def istitle(self, column=None, keep=False): 407 return self._str_generic(name='istitle', column=column, keep=keep, multiple=True)