0

I need to make a function like these two, but at least an order of magnitude faster in python.
Any tips or tricks?
import numpy as np
request_parameters = [1, 2, 3, 4, 5, [10, 11, 12, 13, 14]]
def transform_nested_list(request_parameters: list) -> np.ndarray:
"""
Generate np.ndarray ...