janitor.toset

janitor.toset(series: pandas.core.series.Series) → Set[source]

Return a set of the values.

These are each a scalar type, which is a Python scalar (for str, int, float) or a pandas scalar (for Timestamp/Timedelta/Interval/Period)

Functional usage syntax:

import pandas as pd
import janitor as jn

series = pd.Series(...)
s = jn.functions.toset(series=series)

Method chaining usage example:

import pandas as pd
import janitor

series = pd.Series(...)
s = series.toset()
Parameters

series – A pandas series.

Returns

A set of values.