Skip to content

DOC: Improve describe() doc in getting started #40972

Closed
@NicoLoco

Description

@NicoLoco

In the "getting started tutorial" here: https://pandas.pydata.org/docs/getting_started/intro_tutorials/01_table_oriented.html

The following sentence is incorrect
Many pandas operations return a DataFrame or a Series. The describe() method is an example of a pandas operation returning a pandas Series.

It should say "The describe() method is an example of a pandas operation returning a pandas DataFrame"

Steps to reproduce

import pandas as pd
df = pd.DataFrame({
... "Name" : ["Ally", "Bob", "Charly"],
... "Age" : [15,25,36],
... "Cash": [1000,5000, 20000]});
d = df.describe()
type(d)
<class 'pandas.core.frame.DataFrame'>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions