Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
205 views

Need to add array elements to list. Trying to use "tolist", "extend", and "append", but not successful

I'm trying to create a list that has image_id then several prediction percentages. The prediction percentages (yhat) are in a np array. I thought that using "tolist" then "extend" then "append" ...
JenniferAnn's user avatar
1 vote
1 answer
227 views

export looped numpy histogram outputs to list without array information and formatting

I am running through a loop of data compiled from a number of lists. I am eventually going to create a histogram, however I want the binned outputs from the histogram function to be exported to a list....
GeomorphicJosh's user avatar
2 votes
1 answer
466 views

df.columns.tolist() to return strings not tuples

in pandas to find the columns of a df you do: df.columns which returns a multiindex array. If you want to add it to a variable you do: columns=df.columns.tolist() which would create a tuple for ...
matthewr's user avatar
  • 324