Python Confusion

For social contact, I'm generally following people on https://fosstodon.org/home. I'm https://fosstodon.org/@slott56.

Or @slott56@fosstodon.org <https://fosstodon.org/@slott56> as they say in the Fediverse.

But I saw some stuff on Twitter that was disheartening.

I thought Python🐍wasn't strongly typed.🤔 But this code …

more ...

Book Offers

Apple Books

Pivot to Python

A Guide for professionals and skilled beginners

https://books.apple.com/us/book/pivot-to-python/id1586977675

I've recently updated this to fix some cosmetic problems with title pages, the table of contents and …

more ...



Testing with PySpark

This isn't about details of pySpark. This is about the philosophy of testing when working with a large, complex framework, like pySpark, pandas, numpy, or whatever.

BLUF

Use data subsets.

Write unit tests for the functions that process the data.

Don't test pyspark itself. Test the code you write.

Some …

more ...

Generators as Stacks of Operations

See https://towardsdatascience.com/building-generator-pipelines-in-python-8931535792ff

I'm delighted by this article.

I was shown only the first, horrible, example. I think the idea was to push back on the idea of complex generators. I fumed.

Then I read the entire article.

Now I'm fuming at someone who posted the first example …

more ...