code: def convert_list(serie):
      """Converts lists in a pandas serie into a dataframe
      where which element of a list is a column
  
      Parameters
      ----------
      serie : pandas Serie
          The serie you want to cast into a dataframe
  
      Returns
      -------
      pandas DataFrame
          The converted dataframe
      """
  
      import numpy
      import pandas
  
      if serie.apply(lambda x: type(x) == list).sum() > 0:
          serie = serie.apply(lambda x: [x] if type(x) != list else x)
          cut = int(
              numpy.percentile(serie.apply(len), 90)
          )  # TODO: To test
  
          serie = serie.apply(lambda x: x[:cut])
  
          return pandas.DataFrame(
              serie.tolist(),
              index=serie.index,
              columns=[
                  serie.name + "_item" + str(i + 1) for i in range(cut)
              ],
          )
  
      else:
          return serie
  
file_path: MLBox/mlbox/preprocessing/reader.py
imports: import sys
  import pickle
  import os
  import time
  import warnings
  import numpy
  import pandas
  from sklearn.preprocessing import LabelEncoder
  from joblib import Parallel, delayed
label_desc: Use image node_id 1 for calling a global function with example usage: convert_list(serie) and returns: pandas, serie