You can pass the data (row content) directly with the keyword argument without specifying variables before in robotframework
Example:
@Keyword(tags=['Writer'])
def insert_row(
self,
row_index: int,
/,
*row_data: Any,
header: bool = True, #header entfernen
#**named_row_data: Any
) -> DataFrame: