diff --git a/tech/Python.wiki b/tech/Python.wiki index 40c5ba5..0f3d010 100644 --- a/tech/Python.wiki +++ b/tech/Python.wiki @@ -5,6 +5,7 @@ Wonderful little scripting language == Libraries == * [[python-docx]] +* [[pandas]] == Built ins == diff --git a/tech/pandas.wiki b/tech/pandas.wiki new file mode 100644 index 0000000..908cc86 --- /dev/null +++ b/tech/pandas.wiki @@ -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 +