Update protein_analysis.py

When I call type() on AA_percents  get  "str" also , I didn't not take into
account that I have to first call the string to access the data frame when
I do this
print type(AA_percents['UL86 , human herpes virus 5 / cytomegalovirus (HHV5
/ CMV)'])
I get
 <class 'pandas.core.frame.DataFrame'>
However i am now unsure how to call for the dataframe once it is in the
tuple like in my_comb
would change my_comb into a dict{} make it easier to access the dataframe




On Fri, Jun 20, 2014 at 3:10 PM, Liz <notifications@github.com> wrote:

> In src/protein_analysis.py:
>
> >      for y in x:
> > -        print y
> > +        print type(y)
> > +# printing y would give you all of the element in the csv but printing the type(y) would show if proteins reminded as a pandas data frame
> > +# like they were in AA_percents or if after line 48 did they become just strings.
> > +# the type(y) should have retuned a pandas data frame
>
> I think there is a misunderstanding of python's built-in type() method.
> All type(x) does is return the datatype of the object passed. That is why
> it is returning the value "".
>
> https://docs.python.org/2/library/functions.html#type
>
> http://www.diveintopython.net/power_of_introspection/built_in_functions.html#d0e8510
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Edinunzio/proteinAnalysis/pull/1/files#r14036505>.
>