Skip to content

Commit e1ae56c

Browse files
committed
DOC: Fix validation error RT01 in pandas/io (pandas-dev#25356)
1 parent ac4e339 commit e1ae56c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

pandas/io/pytables.py

+12
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,10 @@ def keys(self):
535535
Return a (potentially unordered) list of the keys corresponding to the
536536
objects stored in the HDFStore. These are ABSOLUTE path-names (e.g.
537537
have the leading '/'
538+
539+
Returns
540+
-------
541+
list
538542
"""
539543
return [n._v_pathname for n in self.groups()]
540544

@@ -1080,6 +1084,10 @@ def create_table_index(self, key, **kwargs):
10801084
def groups(self):
10811085
"""return a list of all the top-level nodes (that are not themselves a
10821086
pandas storage object)
1087+
1088+
Returns
1089+
-------
1090+
list
10831091
"""
10841092
_tables()
10851093
self._check_if_open()
@@ -1214,6 +1222,10 @@ def info(self):
12141222
Print detailed information on the store.
12151223
12161224
.. versionadded:: 0.21.0
1225+
1226+
Returns
1227+
-------
1228+
str
12171229
"""
12181230
output = '{type}\nFile path: {path}\n'.format(
12191231
type=type(self), path=pprint_thing(self._path))

pandas/io/stata.py

+8
Original file line numberDiff line numberDiff line change
@@ -1750,13 +1750,21 @@ def variable_labels(self):
17501750
"""
17511751
Return variable labels as a dict, associating each variable name
17521752
with corresponding label.
1753+
1754+
Returns
1755+
-------
1756+
dict
17531757
"""
17541758
return dict(zip(self.varlist, self._variable_labels))
17551759

17561760
def value_labels(self):
17571761
"""
17581762
Return a dict, associating each variable name a dict, associating
17591763
each value its corresponding label.
1764+
1765+
Returns
1766+
-------
1767+
dict
17601768
"""
17611769
if not self._value_labels_read:
17621770
self._read_value_labels()

0 commit comments

Comments
 (0)