import pandas as pd
import numpy as np
nb_columns = 3
my_list = ['abc','bcd','cde',1,2,3]
# Extract the data from your list and reshape with the proper form (1 row, X columns)
data = np.reshape(my_list[nb_columns:], (1,nb_columns))
# Create a pandas Dataframe with your data and a list of columns name
my_pandas = pd.DataFrame(data, columns=my_list[:nb_columns])
РЕДАКТИРОВАТЬ: для нескольких строк
my_list = ['abc','bcd','cde',1,2,3,4,5,6]
# Try to count the number of rows present in the list
nb_row = int((len(my_list)-nb_columns)/nb_columns)
# Extract the data from your list and reshape with the proper form (N row, X columns)
data = np.reshape(my_list[nb_columns:], (nb_row, nb_columns))
Если у вас есть другие вопросы.