Skip to content

Commit fdbc6b8

Browse files
authored
MAINT: calcurate --> calculate in _doctools.py
1 parent d6df8ea commit fdbc6b8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pandas/util/_doctools.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ def __init__(self, cell_width=0.37, cell_height=0.25, font_size=7.5):
1515
self.font_size = font_size
1616

1717
def _shape(self, df):
18-
"""Calcurate table chape considering index levels"""
18+
"""
19+
Calculate table chape considering index levels.
20+
"""
21+
1922
row, col = df.shape
2023
return row + df.columns.nlevels, col + df.index.nlevels
2124

2225
def _get_cells(self, left, right, vertical):
23-
"""Calcurate appropriate figure size based on left and right data"""
26+
"""
27+
Calculate appropriate figure size based on left and right data.
28+
"""
29+
2430
if vertical:
2531
# calcurate required number of cells
2632
vcells = max(sum([self._shape(l)[0] for l in left]),

0 commit comments

Comments
 (0)