def contains(<EOL>df,<EOL>column: str,<EOL>*,<EOL>pat: str,<EOL>new_column: str = None,<EOL>case: bool = True,<EOL>na: Any = None,<EOL>regex: bool = True<EOL>):
new_column = new_column or column<EOL>df.loc[:, new_column] = df[column].str.contains(pat, case=case, na=na, regex=regex)<EOL>return df<EOL>
Test if pattern or regex is contained within strings of `column`
See [pandas doc](
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.contains.html) for more information

---

### Parameters

*mandatory :*
- `column` (*str*): the column
- `pat` (*str*): character sequence or regular expression.

*optional :*
- `new_column` (*str*): the destination column (if not set, `column` will be used)
- `case` (*boolean*): if true, case sensitive.
- `na`: fill value for missing values.
- `regex` (*boolean*): default true