Recent Python posts

Aggregate Introduction

2022-10-15 | aggregate, compound distribution, insurance modeling, Python

Introduction aggregate is a Python package providing fast, accurate, and expressive data structures that make working with aggregate (also called compound) probability distributions easy and intuitive. It allows

View post

Effective Python Introspection

2022-07-05 | Effective Python, Python, introspection

Effective Python: Introspection Get the arguments of a function. import inspect def f(a, b, c, d): frame = inspect.currentframe() spec =

View post

Effective Python Munging Fitbit Data With Pandas

2022-06-28 | Python, Effective Python, data munging, Fitbit

Pain lies at the intersection of the computer and the real-world. Real-world data is messy, missing, inconsistent. Transforming or munging it into an analysis dataset is and art and a

View post

Aggregate Introduction

2022-07-05 | aggregate, compound distribution, insurance modeling, Python

Series Outline Introduction Creating a simple aggregate distribution (throw of dice, fixed and Poisson freqs) About aggregate or compound loss distributions math and empirical examples; equal bucket size

View post

Effective Python Projects

2022-04-05 | Effective Python, Python, pandas, data

The best way to learn Python is to use it to solve a real-life problem you face. I’m often asked to suggest example projects that are good for

View post

Effective Python Dates

2022-02-20 | Effective Python, Python, dates

Problems arise when computers interact with the real world. You step out of a controlled environment into one with user inputs, paper jams, invalid filenames, and dates. Dates are on the

View post

Effective Python Files

2022-02-10 | Effective Python, Python, path

If you write a program of any length, then you have to manipulate files and filenames. Common tasks include:

View post

Effective Python R Style Regression

2022-02-09 | R, regression, Python, Effective Python, matplotlib, statsmodels

I use R, but I love Python. However, let’s face it, basic linear regression in R is very straightforward. A few clear and intuitive lines of R code

View post

Effective Python Outline

2022-01-20 | programming, Python, Effective Python

General Python About, goals and objectives; leverage the work of others, use established libraries String manipulation and slicing Lists and slicing Dictionaries Sets Strings and Unicode,

View post

Effective Python Zip Enumerate and Iter

2022-02-15 | Effective Python, Python, iterables, enumerate, iter, zip

This short post looks at three built-in Python functions: zip, enumerate, and iter.

View post

Effective Python Strings and Unicode

2022-02-15 | Effective Python, Python, strings

What the �—±?† ? Ever cut and paste text between applications and get unexpected results? Particularly when the source is a webpage? For example, the sentence1

View post

Effective Python Introspection With Pandas

2022-02-15 | Effective Python, Python, pandas, introspection

TBD.

View post