list(data_set.itertuples(index=False))
As of 17.1, the above will return a list of namedtuples.
If you want a list of ordinary tuples, pass name=None
as an argument:
list(data_set.itertuples(index=False, name=None))
More Related Contents:
- How to change the order of DataFrame columns?
- Split pandas dataframe based on groupby
- Add missing dates to pandas dataframe
- pandas loc vs. iloc vs. at vs. iat?
- Pandas: sum DataFrame rows for given columns
- Adding meta-information/metadata to pandas DataFrame
- How to draw vertical lines on a given plot
- selecting from multi-index pandas
- group by in group by and average
- How to remove square bracket from pandas dataframe
- Compute row average in pandas
- Rename MultiIndex columns in Pandas
- Pandas Left Outer Join results in table larger than left table
- Python Pandas update a dataframe value from another dataframe
- Apply fuzzy matching across a dataframe column and save results in a new column
- python dataframe pandas drop column using int
- How to obtain sheet names from XLS files without loading the whole file?
- How to aggregate unique count with pandas pivot_table
- Python: Read several json files from a folder
- How to read a list of parquet files from S3 as a pandas dataframe using pyarrow?
- append dictionary to data frame
- ValueError: Shape of passed values is (1, 6), indices imply (6, 6)
- pandas convert from datetime to integer timestamp
- mean from pandas and numpy differ
- Python: Datetime to season
- Replace NaN with empty list in a pandas dataframe
- How to set the xlim and ylim of a FacetGrid
- Problem in combining bar plot and line plot
- When is it appropriate to use df.value_counts() vs df.groupby(‘…’).count()?
- Plot all pandas dataframe columns separately