## Progress Log 60 (Python 3): Boolean Logic and Control Flow, Modulo Operator %2 == 0, Pandas – Column Access, Row Access

I’m taking a course entitled “Introduction to Python for Data Science” by Microsoft at edX and all of the concepts described below come from that course.   Boolean Logic and Control Flow To check if a value is an even number, use % 2 == 0. This statement should be True …

## Progress Log 59 (Python 3): Histograms – .hist(x, bins=), Customization – append, .fill_between(), .xlabel(), .ylabel(), .title(), .yticks()

I’m taking a course entitled “Introduction to Python for Data Science” by Microsoft at edX and all of the concepts described below come from that course.   Histograms .hist(x, bins=): To build a histogram where x = list of values you want to build a histogram for and bins = how …

## Progress Log 58 (Python 3): Numpy: Basic Statistics – .mean(), .median(), .corrcoef(), .std(), Basic Plots with Matplotlib

I’m taking a course entitled “Introduction to Python for Data Science” by Microsoft at edX and all of the concepts described below come from that course.   Numpy: Basic Statistics Using Numpy, you can calculate the following for your data (assume you imported numpy as np): mean: np.mean(np_2d[]) median: np.median(np_2d[]) correlation: …

## Progress Log 57 (Python 3): Numpy, 2D Numpy Arrays

I’m taking a course entitled “Introduction to Python for Data Science” by Microsoft at edX and all of the concepts described below come from that course.   Numpy Numeric Python Alternative to Python list: Numpy has one additional feature over Python lists: Numpy arrays can perform calculations over entire arrays. Adding …

## Progress Log 56 (Python 3): **, Sublists, max(), min(), round(), .index(), .count(), .replace(), Install Package, Lab

I’m taking a course entitled “Introduction to Python for Data Science” by Microsoft at edX and all of the concepts described below come from that course.   To the power of == ** In python: ^ == **   Sublists Lists can contain lists. For example: Code fam = [[“liz”, 1.73], …

## Progress Log 55 (Python 3): Final Assessment

I’m taking a course entitled “Introduction to Python: Fundamentals” by Microsoft at edX and all of the concepts described below come from that course.   Assessment     Code periodic_table_20 = [“Hydrogen”, “Helium”, “Lithium”, “Beryllium”, “Boron”, “Carbon”, “Nitrogen”, “Oxygen”, “Fluorine”, “Neon”, “Sodium”, “Magnesium”, “Aluminium”, “Silicon”, “Phosphorous”, “Sulfur”, “Chlorine”, “Argon”, “Potassium”, “Calcium”] …

## Progress Log 54 (Python 3): Tasks, Assessment

I’m taking a course entitled “Introduction to Python: Fundamentals” by Microsoft at edX and all of the concepts described below come from that course.   Tasks Code !curl https://raw.githubusercontent.com/MicrosoftLearning/intropython/master/rainbow -o rainbow.txt rainbow = open(‘rainbow.txt’, ‘r’) rainbow_lines = rainbow.readlines() print(rainbow_lines) rainbow_lines.sort() print(rainbow_lines) count = 0 for line in rainbow_lines: rainbow_lines[count] = line[:-1] …

## Progress Log 53 (Python 3): ‘w’ or ‘w+’ Modes, .seek(0) Method, .seek() offset & whence, Writable Modes, Writing to a File, read plus Mode r+

I’m taking a course entitled “Introduction to Python: Fundamentals” by Microsoft at edX and all of the concepts described below come from that course.   writing to a file opened in write mode ‘w’ or ‘w+’     .seek(0) method   .seek() offset & whence     writable modes   Writing …

## Progress Log 52 (Python 3): .readline() method, .readline() while loop, .readline() with .strip(), .strip() method arguments

I’m taking a course entitled “Introduction to Python: Fundamentals” by Microsoft at edX and all of the concepts described below come from that course.   .readline() method   .readline() while loop   .readline() with .strip()   .strip() method arguments