You need convert list
to numpy array
and then reshape
:
df = pd.DataFrame(np.array(my_list).reshape(3,3), columns = list("abc"))
print (df)
a b c
0 1 2 3
1 4 5 6
2 7 8 9
More Related Contents:
- Logarithmic returns in pandas dataframe
- python pandas to_sql with sqlalchemy : how to speed up exporting to MS SQL?
- What is the equivalent of SQL “GROUP BY HAVING” on Pandas?
- Jupyter python3 notebook cannot recognize pandas
- Create a pandas DataFrame from generator?
- Apply function to each row of pandas dataframe to create two new columns
- make pandas DataFrame to a dict and dropna
- Python: reduce precision pandas timestamp dataframe
- A faster alternative to Pandas `isin` function
- How to parse complex text files using Python?
- Python: Pandas – Delete the first row by group
- Pandas DataFrame search is linear time or constant time?
- Pandas Get a List Of All Data Frames loaded into memory
- Merge multiple DataFrames Pandas
- case_when function from R to Python
- Pandas Dataframe Comparison and Floating Point Precision
- Pandas to_csv call is prepending a comma
- MonthEnd object result in instead of number
- python: update dataframe to existing excel sheet without overwriting contents on the same sheet and other sheets
- numerical sort a column containing numbers and strings (pandas/python)
- Faster way to transform group with mean value in Pandas
- Bar-Plot with two bars and two y-axis
- How to add an extra row to a pandas dataframe [duplicate]
- How to select the last column of dataframe
- Pandas: groupby forward fill with datetime index
- “Too many indexers” with DataFrame.loc
- Why do I get a KeyError when using pandas apply?
- pandas – convert string into list of strings [duplicate]
- Pandas(Python) : Fill empty cells with with previous row value?
- Bin values based on ranges with pandas [duplicate]