@@ -687,7 +687,7 @@ def parser_f(
687687read_csv = Appender (
688688 _doc_read_csv_and_table .format (
689689 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." ),
691691 _default_sep = "','" ,
692692 )
693693)(read_csv )
@@ -770,7 +770,7 @@ def read_fwf(
770770 if colspecs is None and widths is None :
771771 raise ValueError ("Must specify either colspecs or widths" )
772772 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'" )
774774
775775 # Compute 'colspecs' from 'widths', if specified.
776776 if widths is not None :
@@ -901,9 +901,7 @@ def _get_options_with_defaults(self, engine):
901901
902902 # see gh-12935
903903 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" )
907905 else :
908906 options [argname ] = value
909907
@@ -942,7 +940,7 @@ def _check_file_or_buffer(self, f, engine):
942940 # needs to have that attribute ("next" for Python 2.x, "__next__"
943941 # for Python 3.x)
944942 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."
946944 raise ValueError (msg )
947945
948946 return engine
@@ -959,7 +957,7 @@ def _clean_options(self, options, engine):
959957 # C engine not supported yet
960958 if engine == "c" :
961959 if options ["skipfooter" ] > 0 :
962- fallback_reason = "the 'c' engine does not support" " skipfooter"
960+ fallback_reason = "the 'c' engine does not support skipfooter"
963961 engine = "python"
964962
965963 encoding = sys .getfilesystemencoding () or "utf-8"
@@ -1397,11 +1395,11 @@ def __init__(self, kwds):
13971395 raise ValueError ("header must be integer or list of integers" )
13981396 if kwds .get ("usecols" ):
13991397 raise ValueError (
1400- "cannot specify usecols when " " specifying a multi-index header"
1398+ "cannot specify usecols when specifying a multi-index header"
14011399 )
14021400 if kwds .get ("names" ):
14031401 raise ValueError (
1404- "cannot specify names when " " specifying a multi-index header"
1402+ "cannot specify names when specifying a multi-index header"
14051403 )
14061404
14071405 # validate index_col that only contains integers
@@ -1611,7 +1609,7 @@ def _get_name(icol):
16111609
16121610 if col_names is None :
16131611 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 (
16151613 icol = icol
16161614 )
16171615 )
@@ -2379,7 +2377,7 @@ def _make_reader(self, f):
23792377 if sep is None or len (sep ) == 1 :
23802378 if self .lineterminator :
23812379 raise ValueError (
2382- "Custom line terminators not supported in " " python parser (yet)"
2380+ "Custom line terminators not supported in python parser (yet)"
23832381 )
23842382
23852383 class MyDialect (csv .Dialect ):
@@ -2662,7 +2660,7 @@ def _infer_columns(self):
26622660 "number of header fields in the file"
26632661 )
26642662 if len (columns ) > 1 :
2665- raise TypeError ("Cannot pass names with multi-index " " columns" )
2663+ raise TypeError ("Cannot pass names with multi-index columns" )
26662664
26672665 if self .usecols is not None :
26682666 # Set _use_cols. We don't store columns because they are
@@ -2727,7 +2725,7 @@ def _handle_usecols(self, columns, usecols_key):
27272725 elif any (isinstance (u , str ) for u in self .usecols ):
27282726 if len (columns ) > 1 :
27292727 raise ValueError (
2730- "If using multiple headers, usecols must " " be integers."
2728+ "If using multiple headers, usecols must be integers."
27312729 )
27322730 col_indices = []
27332731
0 commit comments