Skip to content

Commit 23e6d6d

Browse files
committed
DOC: Do not mention private classes in the documentation (pandas-dev#26981)
1 parent a14874f commit 23e6d6d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pandas/core/generic.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# able to share
5757
_shared_docs = dict()
5858
_shared_doc_kwargs = dict(
59-
axes='keywords for axes', klass='NDFrame',
59+
axes='keywords for axes', klass='DataFrame',
6060
axes_single_arg='int or labels for object',
6161
args_transpose='axes to permute (int or label for object)',
6262
optional_by="""
@@ -1940,7 +1940,7 @@ def __array_wrap__(self, result, context=None):
19401940

19411941
def to_dense(self):
19421942
"""
1943-
Return dense representation of NDFrame (as opposed to sparse).
1943+
Return dense representation of DataFrame (as opposed to sparse).
19441944
19451945
.. deprecated:: 0.25.0
19461946
@@ -9011,7 +9011,7 @@ def tshift(self, periods=1, freq=None, axis=0):
90119011
90129012
Returns
90139013
-------
9014-
shifted : NDFrame
9014+
shifted : DataFrame
90159015
90169016
Notes
90179017
-----
@@ -10247,12 +10247,12 @@ def _find_valid_index(self, how):
1024710247
return idx
1024810248

1024910249
@Appender(_shared_docs['valid_index'] % {'position': 'first',
10250-
'klass': 'NDFrame'})
10250+
'klass': 'DataFrame'})
1025110251
def first_valid_index(self):
1025210252
return self._find_valid_index('first')
1025310253

1025410254
@Appender(_shared_docs['valid_index'] % {'position': 'last',
10255-
'klass': 'NDFrame'})
10255+
'klass': 'DataFrame'})
1025610256
def last_valid_index(self):
1025710257
return self._find_valid_index('last')
1025810258

pandas/core/groupby/groupby.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -630,14 +630,14 @@ def curried(x):
630630

631631
def get_group(self, name, obj=None):
632632
"""
633-
Construct NDFrame from group with provided name.
633+
Construct DataFrame from group with provided name.
634634
635635
Parameters
636636
----------
637637
name : object
638638
the name of the group to get as a DataFrame
639-
obj : NDFrame, default None
640-
the NDFrame to take the DataFrame out of. If
639+
obj : DataFrame, default None
640+
the DataFrame to take the DataFrame out of. If
641641
it is None, the object groupby was called on will
642642
be used
643643

0 commit comments

Comments
 (0)