pandas.Series.to_dict

pandas 3.1.1 · Series and accessors · method

Build a Python mapping from index labels to values.

Call syntax

Series.to_dict(*, into=<class 'dict'>)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
into Optional
Keyword only
Default <class 'dict'>
class

Returns

collections.abc.MutableMapping