Saturday, 15 January 2011

python - Pandas - how to get the data frame index as an array -


Do you know how to get an index number of dataframes in the form of arrays? I have a list of accession numbers in the "Accession" column of the CSV file, which I imported into pandals, and during the import I set the index in the "Accession" column Now, I want to follow the later steps of the "Accession" column There is a need to have a set of labels, but I do not know how to remove the standalone.

You should use the value attribute:

  

It accesses how the data is already stored, so no conversion is required. Note: This feature is also available for many other panda items.

No comments:

Post a Comment