Tuesday, April 30, 2019

Get row names and column names for python pandas dataframe

In python you do:
yourdataframe.columns
yourdataframe.index

In R you do:
columnnames(yourdata.frame)
rownames(yourdata.frame)

No comments:

Post a Comment