0

firs3 is a data frame that had work done to it, and now I want to return the STNAME column as a list of strings containing the STNAMES only, how can I do that?

print(first3.loc['STNAME'])
2
  • 1
    first3.STNAME.astype(str).values? Commented Aug 4, 2018 at 16:04
  • first3['STNAME'].tolist()? or with loc you need to add : for all rows: first3.loc[:,'STNAME'].tolist() Commented Aug 4, 2018 at 16:07

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.