Skip to content
jasper-zanjani edited this page Aug 6, 2020 · 1 revision

summary: open-source Python library used for data science operation: runs over NumPy

  • good for storing lists-of-lists (CSV) print(df)
  • prints it out in an easy to read tabular format

pandas.DataFrame

DataFrame is the main object in pandas

  • head(), tail()
    • prints out the first, last several rows (5 by default)
    • optional numerical argument defines number of rows
  • describe()
    • numerical analyses, including count, unique, mean, etc
  • sort_values('field',ascending=False)

Clone this wiki locally