py-polars/polars/functions.py
def repeat(
    val: Union[int, float, str, bool], n: int, name: Optional[str] = None
) -> "pl.Series":
    """
    Repeat a single value n times and collect into a Series.

    Parameters
    ----------
    val
        Value to repeat.
    n
        Number of repeats.
    name
        Optional name of the Series.
    """
    if name is None:
        name = ""

    dtype = py_type_to_polars_type(type(val))
    s = pl.Series._repeat(name, val, n, dtype)
    return s

    Repeat a single value n times and collect into a Series.

    Parameters
    ----------
    val
        Value to repeat.
    n
        Number of repeats.
    name
        Optional name of the Series.
    
Repeat a single value n times and collect into a Series.
Parameters

val
Value to repeat.
n
Number of repeats.
name
Optional name of the Series.
Repeat a single value n times and collect into a Series . Parameters val Value to repeat . n Number of repeats . name Optional name of the Series .
def repeat(
    val: Union[int, float, str, bool], n: int, name: Optional[str] = None
) -> "pl.Series":
    if name is None:
        name = ""
    dtype = py_type_to_polars_type(type(val))
    s = pl.Series._repeat(name, val, n, dtype)
    return s
def repeat ( val : Union [ int , float , str , bool ] , n : int , name : Optional [ str ] = None ) -> "pl.Series" : if name is None : name = "" dtype = py_type_to_polars_type ( type ( val ) ) s = pl . Series . _repeat ( name , val , n , dtype ) return s
Repeat a single value n times and collect into a Series.
Repeat a single value n times and collect into a Series .
"""
    Repeat a single value n times and collect into a Series.

    Parameters
    ----------
    val
        Value to repeat.
    n
        Number of repeats.
    name
        Optional name of the Series.
    """
val
Union[int, float, str, bool]
n
int
name
Optional[str]