Update for 22-03-22 19:30

This commit is contained in:
Tyler Perkins 2022-03-22 19:30:01 -04:00
parent 387ac46aab
commit b12fdb5c39
2 changed files with 24 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Wonderful little scripting language
== Libraries == == Libraries ==
* [[python-docx]] * [[python-docx]]
* [[pandas]]
== Built ins == == Built ins ==

23
tech/pandas.wiki Normal file
View File

@ -0,0 +1,23 @@
= 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