pandas study notes (2): Viewing data

  • (1) Here is how to view the top and bottom of the frame
  • The data of df2 is
    insert image description here
  • View head and tail data
df2.head()
df2.tail()

insert image description here

  • (2) Display index, column
df2.index
df2.columns

insert image description here

  • (3) DataFrame.to_numpy() provides a NumPy representation of the underlying data

insert image description here

  • (4) describe() can statically display a summary of the data

insert image description here

  • (5) Use T to transpose data

insert image description here

  • (6) Use axis arrangement

insert image description here

  • (7) Specify a column for orderly arrangement

insert image description here