DS WITH PYTHON | Jun 29 - Aug 03 | Deepak

Discussion in 'Big Data and Analytics' started by SUNNY BHAVEEN CHANDRA, Jul 12, 2019.

  1. SUNNY BHAVEEN CHANDRA

    SUNNY BHAVEEN CHANDRA Well-Known Member

    Joined:
    Feb 4, 2019
    Messages:
    56
    Likes Received:
    8
    This is the dedicated community link to discuss with your peers, Teaching assistants and the trainer.
     
    #1
  2. Casey Middlebrooks

    Casey Middlebrooks New Member

    Joined:
    Apr 11, 2019
    Messages:
    1
    Likes Received:
    0
    Did Deepak give the link to a shared drive?
     
    #2
  3. Nishant_Singh

    Nishant_Singh Well-Known Member
    Simplilearn Support

    Joined:
    Aug 1, 2018
    Messages:
    222
    Likes Received:
    30
    #3
  4. Tushar Patel

    Tushar Patel Member

    Joined:
    Apr 13, 2019
    Messages:
    3
    Likes Received:
    0
    Hi deepak.

    Need your help ! regarding movelense project. i am able to perform below mentioned step as getting error.renaming ratings and users are working fine and given output same.

    for coding part

    df_movies=pd.read_csv('movies.dat' , sep = "::", names = ["MovieID","Title","Genres"])

    getting below error

    FileNotFoundError Traceback (most recent call last) <ipython-input-132-7cece7319e61> in <module> 1 df_ratings=pd.read_csv('ratings.dat', sep = "::", names = ["UserID","MovieID","Rating","Timestamp"]) 2 df_users =pd.read_csv('users.dat' , sep = "::", names = ["UserID","Genres","Age","Occupation","Zip-code"]) ----> 3 df_movies=pd.read_csv('movies.dat' , sep = "::", names = ["Movieid","Title","Genres"]) 4 ~\Anaconda3\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, skipfooter, 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, doublequote, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, delim_whitespace, low_memory, memory_map, float_precision) 700 skip_blank_lines=skip_blank_lines) 701 --> 702 return _read(filepath_or_buffer, kwds) 703 704 parser_f.__name__ = name ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in _read(filepath_or_buffer, kwds) 427 428 # Create the parser. --> 429 parser = TextFileReader(filepath_or_buffer, **kwds) 430 431 if chunksize or iterator: ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in __init__(self, f, engine, **kwds) 893 self.options['has_index_names'] = kwds['has_index_names'] 894 --> 895 self._make_engine(self.engine) 896 897 def close(self): ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in _make_engine(self, engine) 1130 ' "c", "python", or' ' "python-fwf")'.format( 1131 engine=engine)) -> 1132 self._engine = klass(self.f, **self.options) 1133 1134 def _failover_to_python(self): ~\Anaconda3\lib\site-packages\pandas\io\parsers.py in __init__(self, f, **kwds) 2223 f, handles = _get_handle(f, mode, encoding=self.encoding, 2224 compression=self.compression, -> 2225 memory_map=self.memory_map) 2226 self.handles.extend(handles) 2227 ~\Anaconda3\lib\site-packages\pandas\io\common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text) 425 elif is_text: 426 # Python 3 and no explicit encoding --> 427 f = open(path_or_buf, mode, errors='replace', newline="") 428 else: 429 # Python 3 and binary mode FileNotFoundError: [Errno 2] No such file or directory: 'movies.dat'
     
    #4

Share This Page