A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Series.to_frame.html below:

pandas.Series.to_frame — pandas 2.3.1 documentation

pandas.Series.to_frame#
Series.to_frame(name=<no_default>)[source]#

Convert Series to DataFrame.

Parameters:
nameobject, optional

The passed name should substitute for the series name (if it has one).

Returns:
DataFrame

DataFrame representation of Series.

Examples

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

On this page

Show Source

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4