vimwiki/tech/pandas.wiki

24 lines
581 B
Plaintext
Raw Normal View History

2022-03-22 23:30:01 +00:00
= Pandas =
Pandas is the python data analysis library
== Data frames
== Spreadsheets ==
=== Open a spreadsheet ===
`myWorkbook = pandas.read_excel('./path/to/excel/file.xlsx')`
`myWorkbook.head()` will display the first 5 or so rows of the spreadsheet
=== Reading from a sheet ===
To read from a sheet, we use several operations on the dataframe object returned
by `read_excel`.
`myWorkbook.iloc[0]` searches based on the index location. So in the previous
example, it returns values in the 0th index. For other reading operations,
refer to reading dataframes for pandas