Handling Microsoft Excel data

Python has some excellent libraries that can handle the data written in an Excel sheet. We already used the Excel sheet in Chapter 4, Using Python to Manage Network Devices, when we needed to automate the netmiko configuration and read the data that described the infrastructure of the Excel file. Now, we will start by installing the Python xlrd library inside the Automation Server.

Use the following command to install xlrd:

pip install xlrd

Follow the steps given below:

  1. The XLRD module can open the Microsoft workbook and parse the contents using the open_workbook() method.
  2. Then you can select the sheet that contains ...

Get Hands-On Enterprise Automation with Python. now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.