daft.Series.from_pandas#

classmethod Series.from_pandas(data: pandas.core.series.Series, name: str = 'pd_series') daft.series.Series[source]#

Construct a Series from a pandas Series.

This will first try to convert the series into a pyarrow array, then will fall back to converting the series to a NumPy ndarray and going through that construction path, and will finally fall back to converting the series to a Python list and going through that path.

Parameters
  • data – The pandas Series whose data we wish to put in the Daft Series.

  • name – The name associated with the Series; this is usually the column name.