Human: What is a good Python function to turn series into 2d arrays. Assistant: 
Here is a Python function to turn series into 2d arrays

import numpy as np

def series_to_2d_array(series):
    """Turn series into 2d array.

    :param series:
    :rtype: numpy.ndarray
    :return:
    """
    return np.array([[series[i][j] for j in range(len(series[i]))] for i in range(len(series))])

# Enter the series
series = [[1,2,3],[4,5,6],[7,8,9]]

# Calling the function
array = series_to_2d_array(series)

# Printing the result
print(array)

#Example Output

# [[1 2 3]
#  [4 5 6]
#  [7 8 9]]

#Remember to inspect code for bugs.