Skip to content

Commit ef7c55e

Browse files
committed
STY: pep8 line lengths
1 parent ed5a5c3 commit ef7c55e

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

pandas/core/frame.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,8 @@ def _helper_csv(self, writer, na_rep=None, cols=None,
13051305

13061306
def to_csv(self, path_or_buf, sep=",", na_rep='', float_format=None,
13071307
cols=None, header=True, index=True, index_label=None,
1308-
mode='w', nanRep=None, encoding=None, quoting=None, line_terminator='\n'):
1308+
mode='w', nanRep=None, encoding=None, quoting=None,
1309+
line_terminator='\n'):
13091310
"""
13101311
Write DataFrame to a comma-separated values (csv) file
13111312
@@ -1337,7 +1338,8 @@ def to_csv(self, path_or_buf, sep=",", na_rep='', float_format=None,
13371338
a string representing the encoding to use if the contents are
13381339
non-ascii, for python versions prior to 3
13391340
line_terminator: string, default '\n'
1340-
The newline character or character sequence to use in the output file
1341+
The newline character or character sequence to use in the output
1342+
file
13411343
"""
13421344
if nanRep is not None: # pragma: no cover
13431345
import warnings
@@ -1361,8 +1363,8 @@ def to_csv(self, path_or_buf, sep=",", na_rep='', float_format=None,
13611363
delimiter=sep, encoding=encoding,
13621364
quoting=quoting)
13631365
else:
1364-
csvout = csv.writer(f, lineterminator=line_terminator, delimiter=sep,
1365-
quoting=quoting)
1366+
csvout = csv.writer(f, lineterminator=line_terminator,
1367+
delimiter=sep, quoting=quoting)
13661368
self._helper_csv(csvout, na_rep=na_rep,
13671369
float_format=float_format, cols=cols,
13681370
header=header, index=index,
@@ -1442,8 +1444,8 @@ def to_string(self, buf=None, columns=None, col_space=None, colSpace=None,
14421444
"""
14431445
import warnings
14441446
if force_unicode is not None: # pragma: no cover
1445-
warnings.warn("force_unicode is deprecated, it will have no effect",
1446-
FutureWarning)
1447+
warnings.warn("force_unicode is deprecated, it will have no "
1448+
"effect", FutureWarning)
14471449

14481450
if nanRep is not None: # pragma: no cover
14491451
warnings.warn("nanRep is deprecated, use na_rep",
@@ -2397,7 +2399,8 @@ def _align_series(self, other, join='outer', axis=None, level=None,
23972399
if fill_na:
23982400
return (left_result.fillna(fill_value, method=method, limit=limit,
23992401
axis=fill_axis),
2400-
right_result.fillna(fill_value, method=method, limit=limit))
2402+
right_result.fillna(fill_value, method=method,
2403+
limit=limit))
24012404
else:
24022405
return left_result, right_result
24032406

0 commit comments

Comments
 (0)