5

Formatting Your Excel Sheet

In this chapter, we are going to go over two different libraries in R and various libraries in Python that can be used to format tables and data in an Excel worksheet.

There are several packages in R that we will be discussing, including the following:

  • styledTables
  • basictabler

We are going to create some fictitious data along with using one of R’s built-in datasets, Iris, and then we are going to apply styling to it from the aforementioned packages. Each package will have its methods to apply this styling, so it’s good to go over them and see which type of workflow you prefer.

In the Python section of this chapter, we will explore the advanced options available in pandas and openpyxl to create beautiful tables ...

Get Extending Excel with Python and R 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.