About the Technical Reviewer
- Ethan Furman
Acknowledgments
Introduction
- Who is this book for?
- About the Author
- Conventions
This is a tip block
- Book Source Code
- Reader Feedback
- Errata
- Cover Art
Chapter 1 - Setting Up Your Machine
- Dependencies
- Installing OpenPyXL with pip
- Installing OpenPyXL with conda
- Using OpenPyXL in a Python Virtual Environment
- Wrapping Up
Chapter 2 - Reading Spreadsheets with OpenPyXL
- Open a Spreadsheet
- Read Specific Cells
- Read Cells From Specific Row
- Read Cells From Specific Column
- Read Cells from Multiple Rows or Columns
- Read Cells from a Range
- Read All Cells in All Sheets
- Wrapping Up
Chapter 3 - Creating a Spreadsheet with OpenPyXL
- Creating a Spreadsheet
- Writing to a Spreadsheet
- Adding and Removing Sheets
- Inserting and Deleting Rows and Columns
- Editing Cell Data
- Creating Merged Cells
- Folding Rows and Columns
- Freezing Panes
- Wrapping Up
Chapter 4 - Styling Cells
- Working with Fonts
- Setting the Alignment
- Adding a Border
- Changing the Cell Background Color
- Inserting Images into Cells
- Styling Merged Cells
- Using a Built-in Style
- Creating a Custom Named Style
- Wrapping Up
Chapter 5 - Conditional Formatting
- Builtin Formats
- Working with
ColorScales - Adding
IconSets - Creating a
DataBar - Using
DifferentialStyles - Wrapping Up
Chapter 6 - Creating Charts
- Making Your First Chart
- Adding Titles to the Chart
- Changing Axis Orientation
- Modifying Chart Layout
- Changing the Chart Size
- Using Styles
- Creating Chartsheets
- Wrapping Up
Chapter 7 - Chart Types
- Area Charts
- Bar Charts
- Bubble Charts
- Line Charts
- Scatter Charts
- Pie Charts
- Doughnut Charts
- Radar Charts
- Surface Charts
- Wrapping Up
Chapter 8 - Converting CSV to Excel
- Converting a CSV file to Excel
- Converting an Excel Spreadsheet to CSV
- Wrapping Up
Chapter 9 - Using Pandas with Excel
- Install Pandas and Dependencies
- Read Excel Spreadsheets
- Read Multiple Excel Worksheets
- Write DataFrames to Excel
- Convert CSV to Excel with Pandas
- Wrapping Up
Chapter 10 - Python and Google Sheets
- Install gspread
- Create Credentials with Google
- Create a New Google Sheet
- Read Google Sheets
- Update Google Sheets
- Delete Google Sheets
- Wrapping Up
Chapter 11 - XlsxWriter
- Installation
- Creating an Excel Spreadsheet
- Formatting Cells
- Adding a Chart
- Creating Sparklines
- Data Validation
- Wrapping Up
Appendix A - Cell Comments
- Adding Comments with Excel
- Adding Comments to Cells with OpenPyXL
- Loading Comments from a Workbook
- Wrapping Up
Appendix B - Print Settings Basics
- Centering Your Data
- Adding Headers
- Adding Print Titles
- Specifying a Print Area
- Wrapping Up
Appendix C - Formulas
- The Parts of an Excel Formula
- Adding a Formula in Excel
- Adding a Formula with OpenPyXL
- Wrapping Up
