Python is a versatile programming language. You can use Python to read, write and edit Microsoft Excel documents. There are several different Python packages you can use, but this book will focus on OpenPyXL.
The OpenPyXL package allows you to work with Excel files on Windows, Mac and Linux, even if Excel isn't installed.
In this book, you will learn about the
Opening and Saving WorkbooksReading Cells and Sheets Creating a Spreadsheet (adding / deleting rows and sheets, merging cells, folding, freeze panes)Cell Styling (font, alignment, side, border, images)Conditional FormattingChartsCommentsPrint SettingsFormulasand more!Python is a great language that you can use to enhance your daily work, whether you are an experienced developer or a beginner!
Going through this book felt like someone wrote a book just for a project that I worked on 13 years back. Here's a rough list of features that would've helped me:
* Creating xlsx files with multiple sheets * Adding data * Formatting cells based on a known equation * Creating charts
Instructions and examples were clear and easy to follow. Snapshots were also shown for all the examples, so you can check if you've followed along as expected. While the book is best suited if you have MS Excel, most of the examples worked for me on LibreOffice Calc. Only the charts had major differences — some types weren't supported and x/y axis label/data were problematic.
Apart from the openpyxl module, the author also briefly covered how you can use pandas, xlsxwriter and gspread (for working with Google sheets). Some features were presented at the end as Appendix chapters.
All in all, I would highly recommend this book for those wanting to use Python for automating spreadsheets.