Skip to content

Commit de09c98

Browse files
palewiresinhrks
authored andcommitted
DOC: Small corrections to describe docstring (#15057)
1 parent 4de5cdc commit de09c98

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/core/generic.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -5287,7 +5287,6 @@ def describe(self, percentiles=None, include=None, exclude=None):
52875287
--------
52885288
Describing a numeric ``Series``.
52895289
5290-
>>> import pandas as pd
52915290
>>> s = pd.Series([1, 2, 3])
52925291
>>> s.describe()
52935292
count 3.0
@@ -5311,7 +5310,6 @@ def describe(self, percentiles=None, include=None, exclude=None):
53115310
53125311
Describing a timestamp ``Series``.
53135312
5314-
>>> import numpy as np
53155313
>>> s = pd.Series([
53165314
... np.datetime64("2000-01-01"),
53175315
... np.datetime64("2010-01-01"),
@@ -5329,10 +5327,8 @@ def describe(self, percentiles=None, include=None, exclude=None):
53295327
Describing a ``DataFrame``. By default only numeric fields
53305328
are returned.
53315329
5332-
>>> df = pd.DataFrame(
5333-
... [[1, 'a'], [2, 'b'], [3, 'c']],
5334-
... columns=['numeric', 'object']
5335-
... )
5330+
>>> df = pd.DataFrame([[1, 'a'], [2, 'b'], [3, 'c']],
5331+
... columns=['numeric', 'object'])
53365332
>>> df.describe()
53375333
numeric
53385334
count 3.0

0 commit comments

Comments
 (0)