class_docstr: Base classes for ML1M and ML10M.
class_docstr_tok: ["Base","classes","for","ML1M","and","ML10M","."]
docstr: Return the movie data (from ``movies.dat``).  Indexed by movie ID.
  
  >>> ml = ML10M()
  >>> ml.movies
                                                      title                                           genres
  item
  1                                        Toy Story (1995)      Adventure|Animation|Children|Comedy|Fantasy
  2                                          Jumanji (1995)                       Adventure|Children|Fantasy
  3                                 Grumpier Old Men (1995)                                   Comedy|Romance
  4                                Waiting to Exhale (1995)                             Comedy|Drama|Romance
  5                      Father of the Bride Part II (1995)                                           Comedy
  ...
  [10681 rows x 2 columns]
docstr_tok: ["Return","the","movie","data","(","from","``","movies.dat","``",")",".","Indexed","by","movie","ID",".",">",">",">","ml","=","ML10M","(",")",">",">",">","ml.movies","title","genres","item","1","Toy","Story","(","1995",")","Adventure|Animation|Children|Comedy|Fantasy","2","Jumanji","(","1995",")","Adventure|Children|Fantasy","3","Grumpier","Old","Men","(","1995",")","Comedy|Romance","4","Waiting","to","Exhale","(","1995",")","Comedy|Drama|Romance","5","Father","of","the","Bride","Part","II","(","1995",")","Comedy","...","[","10681","rows","x","2","columns","]"]
code: def movies(self):
      """
      Return the movie data (from ``movies.dat``).  Indexed by movie ID.
  
      >>> ml = ML10M()
      >>> ml.movies
                                                          title                                           genres
      item
      1                                        Toy Story (1995)      Adventure|Animation|Children|Comedy|Fantasy
      2                                          Jumanji (1995)                       Adventure|Children|Fantasy
      3                                 Grumpier Old Men (1995)                                   Comedy|Romance
      4                                Waiting to Exhale (1995)                             Comedy|Drama|Romance
      5                      Father of the Bride Part II (1995)                                           Comedy
      ...
      [10681 rows x 2 columns]
      """
      fn = self.path / "movies.dat"
      movies = pd.read_csv(
          fn,
          sep=":",
          header=None,
          names=["item", "_ir", "title", "_tg", "genres"],
          usecols=[0, 2, 4],
          dtype={"item": np.int32},
      )
      movies.set_index("item", inplace=True)
      _log.debug("loaded %s", fn)
      return movies
  
imports: import os.path
  from pathlib import Path
  import logging
  import pandas
  import numpy
  from lenskit.util import cached
label_desc: Use image node_id 3 for calling the MLM obj's underlying member method code with example usage: obj.movies() and returns: movies