def repeat(<EOL>df,<EOL>column: str,<EOL>*,<EOL>times: int,<EOL>new_column: str = None<EOL>):
new_column = new_column or column<EOL>df.loc[:, new_column] = df[column].str.repeat(times)<EOL>return df<EOL>
Duplicate each string in `column` by indicated number of time
See [pandas doc](
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.repeat.html) for more information

---

### Parameters

*mandatory :*
- `column` (*str*): the column
- `times` (*int*): times to repeat the string

*optional :*
- `new_column` (*str*): the destination column (if not set, `column` will be used)