# tf_agents.bandits.environments.dataset_utilities.load_movielens_data

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/bandits/environments/dataset_utilities.py#L157-L167) |

Loads the movielens data and returns the ratings matrix.

    tf_agents.bandits.environments.dataset_utilities.load_movielens_data(
        data_file, delimiter=','
    )