def remove_users(users, minNumRatings = 10):

	""" Remove users with fewer ratings than minNumRatings.

	Parameters:
	-----------
	users : Pandas DataFrame
		the dataframe corresponding to user/anime pairs (and the rating given)
	minNumRatings : int
		minimum number of anime a user must have rated to not be removed.

	Returns:
	--------
	users : Pandas dataframe 
		the dataframe corresponding to user/anime pairs (and the rating given)
	"""

	#Remove users with fewer than minNumRatings views
	vc = users.user_id.value_counts()
	low_ratings = vc[vc.map(lambda x: x < minNumRatings)].index
	users.drop(users[users.user_id.map(lambda x: x in low_ratings)].index, inplace=True)

	return users