Book Image

Python Automation Cookbook - Second Edition

By : Jaime Buelta
Book Image

Python Automation Cookbook - Second Edition

By: Jaime Buelta

Overview of this book

In this updated and extended version of Python Automation Cookbook, each chapter now comprises the newest recipes and is revised to align with Python 3.8 and higher. The book includes three new chapters that focus on using Python for test automation, machine learning projects, and for working with messy data. This edition will enable you to develop a sharp understanding of the fundamentals required to automate business processes through real-world tasks, such as developing your first web scraping application, analyzing information to generate spreadsheet reports with graphs, and communicating with automatically generated emails. Once you grasp the basics, you will acquire the practical knowledge to create stunning graphs and charts using Matplotlib, generate rich graphics with relevant information, automate marketing campaigns, build machine learning projects, and execute debugging techniques. By the end of this book, you will be proficient in identifying monotonous tasks and resolving process inefficiencies to produce superior and reliable systems.
Table of Contents (16 chapters)
14
Other Books You May Enjoy
15
Index

Process data with Pandas

For some operations, simple calculations are not enough. Sometimes, operations may have some nuances in the way they are calculated and have problems with precision due to using certain kinds of types.

Python allows us to use big numbers automatically, but in certain languages, adjusting to big numbers could be a challenge. Numbers in computing have limitations such as limited precision or ranges where they are accurate. These limitations may not be obvious at first glance.

Even more so, Python is known not to have an amazing number-crunching performance. Complicated mathematical operations will take longer compared to a compiled language such as C++ or even Java.

That's why using a specialized package can greatly help. They deal with a lot of complexities of the treatment of data, and also produce better performance, as they're optimized for that.

In this recipe, we will see how to process the files using the...