Skip to content

Commit 4a1fbad

Browse files
CLN: D300 Use """triple double quotes""" (#31888)
1 parent 7509aed commit 4a1fbad

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

pandas/core/strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ def wrapper3(self, pat, na=np.nan):
20132013

20142014

20152015
def copy(source):
2016-
"Copy a docstring from another source function (if present)"
2016+
"""Copy a docstring from another source function (if present)"""
20172017

20182018
def do_copy(target):
20192019
if source.__doc__:

pandas/io/clipboard/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def copy_osx_pyobjc(text):
126126
board.setData_forType_(newData, AppKit.NSStringPboardType)
127127

128128
def paste_osx_pyobjc():
129-
"Returns contents of clipboard"
129+
"""Returns contents of clipboard"""
130130
board = AppKit.NSPasteboard.generalPasteboard()
131131
content = board.stringForType_(AppKit.NSStringPboardType)
132132
return content

pandas/io/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2488,7 +2488,7 @@ def get_chunk(self, size=None):
24882488
def _convert_data(self, data):
24892489
# apply converters
24902490
def _clean_mapping(mapping):
2491-
"converts col numbers to names"
2491+
"""converts col numbers to names"""
24922492
clean = {}
24932493
for col, v in mapping.items():
24942494
if isinstance(col, int) and col not in self.orig_names:

pandas/plotting/_matplotlib/converter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ def __init__(
981981
self.finder = get_finder(freq)
982982

983983
def _get_default_locs(self, vmin, vmax):
984-
"Returns the default locations of ticks."
984+
"""Returns the default locations of ticks."""
985985

986986
if self.plot_obj.date_axis_info is None:
987987
self.plot_obj.date_axis_info = self.finder(vmin, vmax, self.freq)
@@ -993,7 +993,7 @@ def _get_default_locs(self, vmin, vmax):
993993
return np.compress(locator["maj"], locator["val"])
994994

995995
def __call__(self):
996-
"Return the locations of the ticks."
996+
"""Return the locations of the ticks."""
997997
# axis calls Locator.set_axis inside set_m<xxxx>_formatter
998998

999999
vi = tuple(self.axis.get_view_interval())
@@ -1062,7 +1062,7 @@ def __init__(self, freq, minor_locator=False, dynamic_mode=True, plot_obj=None):
10621062
self.finder = get_finder(freq)
10631063

10641064
def _set_default_format(self, vmin, vmax):
1065-
"Returns the default ticks spacing."
1065+
"""Returns the default ticks spacing."""
10661066

10671067
if self.plot_obj.date_axis_info is None:
10681068
self.plot_obj.date_axis_info = self.finder(vmin, vmax, self.freq)
@@ -1076,7 +1076,7 @@ def _set_default_format(self, vmin, vmax):
10761076
return self.formatdict
10771077

10781078
def set_locs(self, locs):
1079-
"Sets the locations of the ticks"
1079+
"""Sets the locations of the ticks"""
10801080
# don't actually use the locs. This is just needed to work with
10811081
# matplotlib. Force to use vmin, vmax
10821082

pandas/tests/scalar/period/test_period.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def test_strftime(self):
650650

651651

652652
class TestPeriodProperties:
653-
"Test properties such as year, month, weekday, etc...."
653+
"""Test properties such as year, month, weekday, etc...."""
654654

655655
@pytest.mark.parametrize("freq", ["A", "M", "D", "H"])
656656
def test_is_leap_year(self, freq):

0 commit comments

Comments
 (0)