@@ -687,7 +687,7 @@ def parser_f(
687
687
read_csv = Appender (
688
688
_doc_read_csv_and_table .format (
689
689
func_name = "read_csv" ,
690
- summary = ("Read a comma-separated values (csv) file " " into DataFrame." ),
690
+ summary = ("Read a comma-separated values (csv) file into DataFrame." ),
691
691
_default_sep = "','" ,
692
692
)
693
693
)(read_csv )
@@ -770,7 +770,7 @@ def read_fwf(
770
770
if colspecs is None and widths is None :
771
771
raise ValueError ("Must specify either colspecs or widths" )
772
772
elif colspecs not in (None , "infer" ) and widths is not None :
773
- raise ValueError ("You must specify only one of 'widths' and " " 'colspecs'" )
773
+ raise ValueError ("You must specify only one of 'widths' and 'colspecs'" )
774
774
775
775
# Compute 'colspecs' from 'widths', if specified.
776
776
if widths is not None :
@@ -901,9 +901,7 @@ def _get_options_with_defaults(self, engine):
901
901
902
902
# see gh-12935
903
903
if argname == "mangle_dupe_cols" and not value :
904
- raise ValueError (
905
- "Setting mangle_dupe_cols=False is " "not supported yet"
906
- )
904
+ raise ValueError ("Setting mangle_dupe_cols=False is not supported yet" )
907
905
else :
908
906
options [argname ] = value
909
907
@@ -942,7 +940,7 @@ def _check_file_or_buffer(self, f, engine):
942
940
# needs to have that attribute ("next" for Python 2.x, "__next__"
943
941
# for Python 3.x)
944
942
if engine != "c" and not hasattr (f , next_attr ):
945
- msg = "The 'python' engine cannot iterate " " through this file buffer."
943
+ msg = "The 'python' engine cannot iterate through this file buffer."
946
944
raise ValueError (msg )
947
945
948
946
return engine
@@ -959,7 +957,7 @@ def _clean_options(self, options, engine):
959
957
# C engine not supported yet
960
958
if engine == "c" :
961
959
if options ["skipfooter" ] > 0 :
962
- fallback_reason = "the 'c' engine does not support" " skipfooter"
960
+ fallback_reason = "the 'c' engine does not support skipfooter"
963
961
engine = "python"
964
962
965
963
encoding = sys .getfilesystemencoding () or "utf-8"
@@ -1397,11 +1395,11 @@ def __init__(self, kwds):
1397
1395
raise ValueError ("header must be integer or list of integers" )
1398
1396
if kwds .get ("usecols" ):
1399
1397
raise ValueError (
1400
- "cannot specify usecols when " " specifying a multi-index header"
1398
+ "cannot specify usecols when specifying a multi-index header"
1401
1399
)
1402
1400
if kwds .get ("names" ):
1403
1401
raise ValueError (
1404
- "cannot specify names when " " specifying a multi-index header"
1402
+ "cannot specify names when specifying a multi-index header"
1405
1403
)
1406
1404
1407
1405
# validate index_col that only contains integers
@@ -1611,7 +1609,7 @@ def _get_name(icol):
1611
1609
1612
1610
if col_names is None :
1613
1611
raise ValueError (
1614
- ("Must supply column order to use {icol!s} " " as index" ).format (
1612
+ ("Must supply column order to use {icol!s} as index" ).format (
1615
1613
icol = icol
1616
1614
)
1617
1615
)
@@ -2379,7 +2377,7 @@ def _make_reader(self, f):
2379
2377
if sep is None or len (sep ) == 1 :
2380
2378
if self .lineterminator :
2381
2379
raise ValueError (
2382
- "Custom line terminators not supported in " " python parser (yet)"
2380
+ "Custom line terminators not supported in python parser (yet)"
2383
2381
)
2384
2382
2385
2383
class MyDialect (csv .Dialect ):
@@ -2662,7 +2660,7 @@ def _infer_columns(self):
2662
2660
"number of header fields in the file"
2663
2661
)
2664
2662
if len (columns ) > 1 :
2665
- raise TypeError ("Cannot pass names with multi-index " " columns" )
2663
+ raise TypeError ("Cannot pass names with multi-index columns" )
2666
2664
2667
2665
if self .usecols is not None :
2668
2666
# Set _use_cols. We don't store columns because they are
@@ -2727,7 +2725,7 @@ def _handle_usecols(self, columns, usecols_key):
2727
2725
elif any (isinstance (u , str ) for u in self .usecols ):
2728
2726
if len (columns ) > 1 :
2729
2727
raise ValueError (
2730
- "If using multiple headers, usecols must " " be integers."
2728
+ "If using multiple headers, usecols must be integers."
2731
2729
)
2732
2730
col_indices = []
2733
2731
0 commit comments