Skip to content

Commit 45f6aac

Browse files
committed
Some small changes based on feedback
1 parent 832d26e commit 45f6aac

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

pandas/io/formats/common.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,14 @@ def get_level_lengths(levels, sentinel=''):
4949

5050
def buffer_put_lines(buf, lines):
5151
"""
52-
Appends lines to a buffer
53-
:param buf: the buffer to write to
54-
:param lines: the lines to append
52+
Appends lines to a buffer.
53+
54+
Parameters
55+
----------
56+
buf
57+
The buffer to write to
58+
lines
59+
The lines to append.
5560
"""
5661
if any(isinstance(x, compat.text_type) for x in lines):
5762
lines = [compat.text_type(x) for x in lines]

pandas/io/formats/csv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
from __future__ import print_function
77

8+
import csv
9+
import numpy as np
10+
811
from pandas.core.dtypes.missing import notna
912
from pandas.core.index import Index, MultiIndex
1013
from pandas import compat
@@ -15,9 +18,6 @@
1518
from pandas._libs import writers as libwriters
1619
from pandas.core.indexes.datetimes import DatetimeIndex
1720
from pandas.core.indexes.period import PeriodIndex
18-
import numpy as np
19-
20-
import csv
2121

2222

2323
class CSVFormatter(object):

pandas/io/formats/html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
OrderedDict, unichr)
1616
from pandas.core.config import get_option
1717
from pandas.io.formats.printing import pprint_thing
18-
from pandas.io.formats.common import get_level_lengths, \
19-
TableFormatter, buffer_put_lines
18+
from pandas.io.formats.common import (get_level_lengths,
19+
TableFormatter, buffer_put_lines)
2020

2121

2222
class HTMLFormatter(TableFormatter):

pandas/io/formats/latex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LatexFormatter(TableFormatter):
2525
longtable : boolean, default False
2626
Use a longtable environment instead of tabular.
2727
28-
See also
28+
See Also
2929
--------
3030
HTMLFormatter
3131
"""

0 commit comments

Comments
 (0)