def transform_schema(actions, schema):
    """Transform schema according to actions.

    Args:
        actions (list): actions to run
        schema (pyarrow.Schema): original schema

    Returns:
        pyarrow.Schema: Transformed schema
    """
    for action in actions:
        schema = action.schema(schema)
    return schema