Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Extending Excel with Python and R
  • Table Of Contents Toc
  • Feedback & Rating feedback
Extending Excel with Python and R

Extending Excel with Python and R

By : Steven Sanderson, Kun
5 (5)
close
close
Extending Excel with Python and R

Extending Excel with Python and R

5 (5)
By: Steven Sanderson, Kun

Overview of this book

– Extending Excel with Python and R is a game changer resource written by experts Steven Sanderson, the author of the healthyverse suite of R packages, and David Kun, co-founder of Functional Analytics. – This comprehensive guide transforms the way you work with spreadsheet-based data by integrating Python and R with Excel to automate tasks, execute statistical analysis, and create powerful visualizations. – Working through the chapters, you’ll find out how to perform exploratory data analysis, time series analysis, and even integrate APIs for maximum efficiency. – Both beginners and experts will get everything you need to unlock Excel's full potential and take your data analysis skills to the next level. – By the end of this book, you’ll be able to import data from Excel, manipulate it in R or Python, and perform the data analysis tasks in your preferred framework while pushing the results back to Excel for sharing with others as needed.
Table of Contents (20 chapters)
close
close
1
Part 1:The Basics – Reading and Writing Excel Files from R and Python
6
Part 2: Making It Pretty – Formatting, Graphs, and More
10
Part 3: EDA, Statistical Analysis, and Time Series Analysis
14
Part 4: The Other Way Around – Calling R and Python from Excel
16
Part 5: Data Analysis and Visualization with R and Python for Excel Data – A Case Study

What this book covers

Chapter 1, Reading Excel Spreadsheets, delves into importing data from Excel into R/Python. You will begin by importing your first Excel sheet into R, navigating Excel file intricacies, and then conclude with a Python counterpart.

Chapter 2, Writing Excel Spreadsheets, explains how, after analyzing data in R/Python, it’s essential to communicate findings effectively with Excel users. This chapter provides insights into creating Excel sheets from R/Python and exporting analysis results.

Chapter 3, Executing VBA Code from R and Python, explores how, next to writing the results out to Excel, you might want to add VBA macros and functions to the resulting Excel sheet to further empower the end users of the analysis results. We can do this in this chapter.

Chapter 4, Automating Further – Task Scheduling and Email, covers how we have R packages such as RDCOMClient, which will work with Outlook, and Blastula, which can help in automating the analysis and emailing of reports in R. In Python, the smtplib package serves the same purpose.

Chapter 5, Formatting Your Excel Sheet, discusses how packages can help with creating sheets and tables along with formatted data in Excel, and how to use them to create beautiful Excel reports.

Chapter 6, Inserting ggplot2/matplotlib Graphs, shows how to create graphics from ggplot2 and matplotlib. There are ggplot2 themes a user can use as well, along with others to create beautiful graphics in R/Python and place them in Excel.

Chapter 7, Pivot Tables and Summary Tables, explores the world of pivot tables in Excel using R and Python. Learn how to create and manipulate pivot tables directly from R/Python for seamless interaction with Excel.

Chapter 8, Exploratory Data Analysis with R and Python, explains how to pull data in from Excel and perform Exploratory Data Analysis (EDA) with various packages, such as {skimr} for R and pandas and ppscore for Python.

Chapter 9, Statistical Analysis: Linear and Logistic Regression, teaches you how to perform simple statistical analysis with linear and logistic regression in R and Python on Excel data.

Chapter 10, Time Series Analysis: Statistics, Plots, and Forecasting, explains how to perform simple time series analysis using the forecast package in R, and kats and long short-term memory (LSTM) in Python.

Chapter 11, Calling R/Python Locally from Excel Directly or via an API, calls R and Python from Excel locally and via an API. This chapter also covers the open source tools for calling a local R/Python installation from Excel using BERT and xlwings, as well as open source and commercial API solutions.

Chapter 12, Data Analysis and Visualization with R and Python in Excel – A Case Study, presents a case study of performing data visualization and machine learning in Excel by calling R or Python.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY