Agile Python Programming Applied for Everyone
Agile Python Programming Applied for Everyone
About the Book
This book provides a practical demonstration of python programming as an agile tool for data cleaning, integration, analysis, and visualization. It focuses on life-base scenarios approach as a means to facilitate programming structures and to develop related intellectual conceptual. This volume provides the reader with practical examples of basic language structure, control statements, iterations, functions and modules, file processing, data integration, analysis, and visualization. It focuses on learning by doing where the reader can practically employ python programming to resolve simple and complex problems in IT, business, bioinformatics, education, health, etc. using agile programming syntax. Different from the other scripts, this book supply readers with concise code-based examples of real-life scenarios. The book fits for academics, professionals, and researchers where they not only can explore numerous scenarios but also gain the benefits of the developed online cloud bases source code; which can be accessed using a barcode reader, for straightforward and agile practical implementation to resolve a research problem.
Chapter 1, this chapter covers the basic syntax structure of python program, add comments and the use of quotations. Also, how to write python script in multiline form. Declare and initialize variables and its naming rules. Read data from the user and perform main operations arithmetical, logical, relational and assign operations. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 2, this chapter covers selection statements syntax and forms i.e. if statement, if else and the nested if statement. Iteration statements are also illustrated with practical examples using for loop, while loop and nest loop statements. Exceptional handling using try and except statement are demonstrated with examples. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 3, this chapter covers string processing including special string operators, slicing and concatenation, string conversions and formatting symbols, loop through strings. Python provides various string methods and functions which facilitate text processing and extraction, these methods and functions are discussed with examples. The in operator, parsing and extracting strings are also illustrated. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 4, this chapter covers functions and modules, we illustrated built-in python functions, define and call functions, passing parameters and return statement. We demonstrated python conversion functions, as well as the random numbers generating functions. Moreover, we illustrated python math library and functions, anonymous python function, the scope of variables. Also, we covered creating modules, packages, importing, and its function calling. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 5, this chapter covers python different data collection structures. A List is a sequence of values of any data type, we illustrated lists creation, accessing, updating and python basic operations that can be implemented on lists. In addition, we demonstrated lists indexing, slicing, matrices, built-in list functions, list methods, list sorting and traversing, parsing lists of strings, and lists aliasing. Dictionary is a key-value pair structure; we illustrated how to create dictionaries, updating and accessing values in the dictionary, delete dictionary elements, built-in dictionary functions and methods. A tuple is a sequence of immutable python objects; we demonstrate how to create tuples, updating tuples, accessing values in tuples, and cover the basic tuples operations. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 6, this chapter covers python file I/O processing and regular expressions. We illustrated file I/O processing and regular expressions, screen in/out processing, opening and closing files, accessing file object attributes, reading and writing to files. Regular expressions, regular expression patterns, special character classes, repetition cases, alternatives, and anchors. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 7, this chapter covers data gathering and cleaning, how to handle missing values. Read data from different sources (offline, online, and direct from the cloud), read different data format such as CSV, text, HTML, Jason, etc. Implement data integration and prepare collected data for further analysis. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 8, this chapter covers data exploring and analysis. We illustrated the series data structure, create a series, accessing data from series with the position. DataFrame structure, create a DataFrame, updating and accessing data frames. Including columns and rows selection, addition, deletion. We demonstrated Panel data structure, create a panel, accessing data in a panel. Data analysis, statistical analysis, data grouping, iterating through groups, aggregations, transformations, filtration. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 9, this chapter covers Python Data Visualization. Direct Plotting, Line Plotting, Bar Plotting, Pie Chart, Box Plotting, Histogram Plotting, A Scatterplot. Seaborn Plotting System, Strip Plotting, Boxplot, SWARMPLOT, JOINTPLOT. Matplotlib Plotting, Line Plotting, Bar Chart, Histogram Plotting, Scatter Plot, Stack Plots, And Pie Chart. In addition, an exercise with model answers is given for practicing and showing real-life scenarios.
Chapter 10, this chapter covers case study with model answers.
Translations
Table of Contents
Contents
History and Overview of Python
Chapter 1 Getting Start with Python
Multiple Statements on a Single Line
1.2 Declaring Variable and Assigning Values
3.2 string slicing and concatenation
string conversions and formatting symbols
3.4 Python String Functions and Methods
3.5 parsing and extracting string
Python Function return Statement
Create and Importing a Module:
B. Use the From ….. import statement:
C. Use Built in Modules in Python:
D. Import and use Python Packages
Indexing, Slicing, and matrices
Built-in List Functions & Methods
Updating and Accessing Values in Dictionary
Built-in Dictionary Functions & Methods
File I/O processing & Regular expressions
6.1.1 Screen in/out processing
6.1.2 Opening and Closing Files
6.1.3 The file Object Attributes
6.1.4 Reading and Writing Files
6.2.1 Regular Expression Patterns
6.2.2 Special Character Classes
8.1.2 Accessing Data from Series with Position
8.2.2 Updating and Accessing DataFrame.
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them