xorbits.pandas.Series.to_frame#

Series.to_frame(name=None)[source]#

Convert Series to DataFrame.

Parameters

name (object, optional) – The passed name should substitute for the series name (if it has one).

Returns

DataFrame representation of Series.

Return type

DataFrame

Examples

>>> s = pd.Series(["a", "b", "c"],  
...               name="vals")
>>> s.to_frame()  
  vals
0    a
1    b
2    c

This docstring was copied from pandas.core.series.Series.