bigframes.pandas.Series.to_frame#
- Series.to_frame(name: Hashable = None) DataFrame[source]#
Convert Series to DataFrame.
The column in the new dataframe will be named name (the keyword parameter) if the name parameter is provided and not None.
Examples:
>>> s = bpd.Series(["a", "b", "c"], ... name="vals") >>> s.to_frame() vals 0 a 1 b 2 c [3 rows x 1 columns]
- Parameters:
name (Hashable, default None)
- Returns:
DataFrame representation of Series.
- Return type: