# This is where magic happens.

# The function fit_transform has turned our list of dicts into a list of arrays containing enough columns

# for all the players in this fake data set.

# The variable v, an instance of DictVectorizer, is able to keep track of all this bookkeeping for us.

# Basically, it's a really useful thing to have for what we're about to do and eliminates

# writing a metric ton of our own code.

X

=

v

.

fit_transform

(

list_dicts

)

print

(

X

)