For example, I have a dataframe column ('x') that contains lists as values.
import pandas as pd
jk = pd.DataFrame()
jk['x'] = [[1, 2, 3], [1, 4, 2], [27, 1, 3]]
I used the code below to split the values into columns like this. However, my actual data set is very large. I have about 80, 000 rows and 16 values inside every list. Is there a more efficient way to do this?
jk1 = pd.DataFrame(jk.x.values.tolist(), columns=['a','b','c'])
