File tree Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Expand file tree Collapse file tree 4 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,14 @@ def get_level_lengths(levels, sentinel=''):
49
49
50
50
def buffer_put_lines (buf , lines ):
51
51
"""
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.
55
60
"""
56
61
if any (isinstance (x , compat .text_type ) for x in lines ):
57
62
lines = [compat .text_type (x ) for x in lines ]
Original file line number Diff line number Diff line change 5
5
6
6
from __future__ import print_function
7
7
8
+ import csv
9
+ import numpy as np
10
+
8
11
from pandas .core .dtypes .missing import notna
9
12
from pandas .core .index import Index , MultiIndex
10
13
from pandas import compat
15
18
from pandas ._libs import writers as libwriters
16
19
from pandas .core .indexes .datetimes import DatetimeIndex
17
20
from pandas .core .indexes .period import PeriodIndex
18
- import numpy as np
19
-
20
- import csv
21
21
22
22
23
23
class CSVFormatter (object ):
Original file line number Diff line number Diff line change 15
15
OrderedDict , unichr )
16
16
from pandas .core .config import get_option
17
17
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 )
20
20
21
21
22
22
class HTMLFormatter (TableFormatter ):
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class LatexFormatter(TableFormatter):
25
25
longtable : boolean, default False
26
26
Use a longtable environment instead of tabular.
27
27
28
- See also
28
+ See Also
29
29
--------
30
30
HTMLFormatter
31
31
"""
You can’t perform that action at this time.
0 commit comments