Update for 22-03-22 19:30
This commit is contained in:
parent
387ac46aab
commit
b12fdb5c39
@ -5,6 +5,7 @@ Wonderful little scripting language
|
||||
== Libraries ==
|
||||
|
||||
* [[python-docx]]
|
||||
* [[pandas]]
|
||||
|
||||
== Built ins ==
|
||||
|
||||
|
23
tech/pandas.wiki
Normal file
23
tech/pandas.wiki
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user