You could access the underlying array and call its tolist
method:
>>> df = pd.DataFrame([[1,2,3],[3,4,5]])
>>> lol = df.values.tolist()
>>> lol
[[1L, 2L, 3L], [3L, 4L, 5L]]
More Related Contents:
- How to change the order of DataFrame columns?
- Add missing dates to pandas dataframe
- pandas loc vs. iloc vs. at vs. iat?
- Pandas: sum DataFrame rows for given columns
- How to reset index in a pandas dataframe? [duplicate]
- Convert Excel style date with pandas
- Merge two dataframes by index
- Count unique values per groups with Pandas [duplicate]
- How to convert columns into one datetime column in pandas?
- Count unique values using pandas groupby
- Adding meta-information/metadata to pandas DataFrame
- Create a day-of-week column in a Pandas dataframe using Python
- How to draw vertical lines on a given plot
- How to count the NaN values in a column in pandas DataFrame
- How to remove square bracket from pandas dataframe
- Rename MultiIndex columns in Pandas
- How to one hot encode variant length features?
- Python Pandas update a dataframe value from another dataframe
- Apply fuzzy matching across a dataframe column and save results in a new column
- Action with pandas SettingWithCopyWarning
- python dataframe pandas drop column using int
- pandas equivalent of np.where
- How to aggregate unique count with pandas pivot_table
- How to read a list of parquet files from S3 as a pandas dataframe using pyarrow?
- Pivot Tables of Counts in Pandas DataFrame
- append dictionary to data frame
- Remove ends of string entries in pandas DataFrame column
- why is a sum of strings converted to floats
- Pandas: Create missing combination rows with zero values
- Pythonic/efficient way to strip whitespace from every Pandas Data frame cell that has a stringlike object in it