Please help, I am a python newbie, and I'm trying to figure how to convert a list of about a million ensembl gene ID's into gene symbols. I have imported pandas and numpy and have gotten to the point where I have the csv imported.
data = pd.read_csv("genes_affected_2.csv")
data.head()
I am trying to use a code like this:
ginfo = mg.querymany(ens, scopes='ensembl.gene')
for g in ginfo:
for k, v in g.iteritems():
print "- {0: <10}: {1}".format(k, v)
print
but I can't figure out how to take the column values from the "genes_affected_2.csv" file and convert them.
What does
data.head()
return?It just returns the first five lines of my table!