Ext: 78532102
Rides = Pd.read_csv (data_path) # OSError Traceback (most recent call last)
<ipython-input-48-4b01f471424e> in <module> ()
----> 1 rides = pd.read_csv (data_path) c:\users\administrator\appdata\local\programs\python\python36\lib\ site-packages\pandas\io\parsers.py in Parser_f (Filepath_or_buffer, Sep, delimiter, header, names, Index_col, Usecols, Squeeze, prefix, Mangle_dupe_cols, dtype, engine, converters, True_values, False_values, Skipinitialspace, SkipRows, Nrows, Na_values, Keep_default_na, Na_filter, verbose, Skip_blank_lines, Parse_dates, Infer_datetime_format, keep_date _col, Date_parser, Dayfirst, iterator, chunksize, compression, thousands, decimal, LineTerminator, QuoteChar, quoting, ES Capechar, comment, encoding, dialect, Tupleize_cols, Error_bad_lines, Warn_bad_lines, Skipfooter, Skip_footer, Doublequote, Delim_whitespace, As_recarray, Compact_ints, use_unsigned, Low_memory, Buffer_lines, Memory_map, Float_ Precision
703 Skip_blank_lines=skip_blank_lines)
704
--705 return _read (Filepath_or_buffer, Kwds)
706
707 parser_f.__name__ = namec:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\ pandas\io\parsers.py in _read (Filepath_or_buffer, Kwds)
443
444 # Create the parser.
--445 parser = Textfilereader (Filepath_or_buffer, **kwds)
446
447 if chunksize or iterator:c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\ pandas\io\parsers.py in __init__ (self, F, engine, **kwds)
812 self.options[' has_index_names '] = kwds[' has_index_names ']
813
--814 Self._make_engine (Self.engine)
815
816 def close (self): c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\pandas\io\ parsers.py in _make_engine (self, Engine)
1043 def _make_engine (self, engine= ' C '):
1044 if engine = = ' C ':
-1045 Self._engine = Cparserwrapper (SELF.F, **self.options)
1046 Else:
1047 if engine = = ' Python ': C:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\pan das\io\parsers.py in __init__ (self, SRC, **kwds)
1682 kwds[' allow_leading_cols ') = Self.index_col is not False
1683
-1684 Self._reader = parsers. TextReader (SRC, **kwds)
1685
1686 # Xxxpandas\_libs\parsers.pyx in pandas._libs.parsers.textreader.__cinit__ () Pandas\_libs\parsers.pyx in Panda S._libs.parsers.textreader._setup_parser_source () oserror:initializing from File failed1234567891011121314151617181920212223242526272829303132333435363738394041424344 Solution: 1. Change the Chinese in the current path to English.
2.CD into your CSV file directory, and then open the CSV file directly.
(turn) Pd.read_csv oserror:initializing from file failed solution