Give me this code using babypandas.

3. Game On! 🎮
Here, we'll be working with a dataset taken from Kaggle that contains sales information for thousands of video games, including some released this year. In the cell below, we load the dataset in as a DataFrame named video_games. Take some time to understand what each column of video_games represents, as we haven't provided you with a description of each column.

# Run this cell to load the dataset.
video_games = bpd.read_csv('data/video_game_ratings.csv')
video_games
title	year	genre	rating	votes	directors	plot
0	The Last of Us: Part I	2022	Action, Adventure, Drama	9.8	601	Matthew Gallant, Bruce Straley	Experience the emotional storytelling and unfo...
1	Red Dead Redemption II	2018	Action, Adventure, Crime	9.7	36,441	Missing	Amidst the decline of the Wild West at the tur...
2	The Witcher 3: Wild Hunt - Blood and Wine	2016	Action, Adventure, Drama	9.7	7,610	Konrad Tomaszkiewicz	Geralt is in the southern province of Toussain...
3	The Witcher 3: Wild Hunt	2015	Action, Adventure, Drama	9.7	26,328	Konrad Tomaszkiewicz	A monster hunter for hire embarks on an epic j...
4	The Last of Us	2013	Action, Adventure, Drama	9.7	61,103	Neil Druckmann, Bruce Straley	In a hostile, post-pandemic world, Joel and El...
...	...	...	...	...	...	...	...
12630	Superman	1999	Action, Adventure, Family	1.4	646	Missing	The first 3D Superman game. Your friends Lois ...
12631	Action 52	1991	Action, Family, Fantasy	1.3	135	Raul Gomila, Vince Perri	Play the action at your fingertips with 52 gam...
12632	Plumbers Don't Wear Ties	1994	Comedy, Romance	1.3	338	Michael Anderson	John, an unattached plumber, meets and falls i...
12633	Animal Soccer World	2005	Animation, Sport	1.2	125	Roswitha Haas	Everybody is busy with the preparations for th...
12634	CrazyBus	2004	Adventure, Family	1.0	126	Tom Maneiro	You get to select your bus and drive it across...
12635 rows × 7 columns

Question 3.1. If you look at the 'votes' column in the DataFrame, you'll notice that there are commas in some of the numbers. For example, in the second row of the DataFrame, the value in the 'votes' column is '36,441'. These commas indicate that the 'votes' column contains strings, not integers, since Python never displays integers with commas.

Write a function convert_votes_to_int that takes in a string v as input and outputs v as an integer, after removing any commas.

Then, use your function to update the 'votes' column in the video_games DataFrame so that it contains integers rather than strings. Make sure to "save" your changes in the video_games DataFrame!

def convert_votes_to_int(v):
    ...
def convert_votes_to_int(v):
    return int(v.replace(',', ''))
assign
video_games = video_games.assign(votes=video_games.get('votes').apply(convert_votes_to_int))
video_games
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_1561/1237417494.py in <module>
----> 1 video_games = video_games.get(votes=video_games.get('votes').apply(convert_votes_to_int))
      2 video_games

AttributeError: 'ellipsis' object has no attribute 'get'

grader.check("q3_1")

q3_1 results:

q3_1 - 1 result:
    Trying:
        import numbers
    Expecting nothing
    ok
    Trying:
        (isinstance(video_games, bpd.DataFrame) and video_games.shape == (12635, 7) and isinstance(video_games.get('votes').iloc[0], numbers.Integral))
    Expecting:
        True
    **********************************************************************
    Line 2, in q3_1 0
    Failed example:
        (isinstance(video_games, bpd.DataFrame) and video_games.shape == (12635, 7) and isinstance(video_games.get('votes').iloc[0], numbers.Integral))
    Expected:
        True
    Got:
        False
Question 3.2. You are curious as to whether there is a relationship between the number of votes a game receives and the rating of the game. Create an appropriate plot that shows the relationship between these two variables.

# Create your plot here.
...