In [199]: df2.reset_index().to_dict(orient="list")
Out[199]:
{'date': ['2014-10-1', '2014-10-2', '2014-10-3', '2014-10-4', '2014-10-5'],
'foo': [8, 1, 8, 8, 1],
'temp': [10, 10, 8, 3, 10],
'time': [1, 2, 3, 4, 5]}
More Related Contents:
- Filter pandas DataFrame by substring criteria
- Binning a column with Python Pandas
- Pandas GroupBy.apply method duplicates first group
- Pandas Dataframe line plot display date on xaxis
- Best way to join / merge by range in pandas
- How to plot and annotate a grouped bar chart
- Pandas Extract Number from String
- How to filter rows in pandas by regex
- Pandas groupby month and year
- Remove reverse duplicates from dataframe
- How to split text in a column into multiple rows
- Export a Pandas dataframe as a table image
- How to flatten a pandas dataframe with some columns as json?
- pandas groupby to nested json
- Repeat Rows in Data Frame n Times [duplicate]
- Pandas – Creating Difference Matrix from Data Frame
- Element-wise logical OR in Pandas
- Pandas won’t fillna() inplace
- Pandas: Difference between pivot and pivot_table. Why is only pivot_table working?
- Round each number in a Python pandas data frame by 2 decimals
- Running sum in pandas (without loop)
- Pandas number rows within group in increasing order
- How to estimate how much memory a Pandas’ DataFrame will need?
- FastAPI is very slow in returning a large amount of JSON data
- Bar Chart with multiple labels
- Pandas plot doesn’t show
- Store numpy.array in cells of a Pandas.DataFrame
- Pandas: Incrementally count occurrences in a column
- Python Pandas add column for row-wise max value of selected columns [duplicate]
- Pandas: Nesting Dataframes