Polars Boosted My Algorithm's Speed by 25x

Refactoring an RCE machine learning algorithm from Pandas lambda functions to the Polars expression API reduced execution time from six minutes to fourteen seconds. Polars cross joins, columnar operations, and Apache Arrow drive a 25x speedup.

comments

Quick and Easy Capacity Planning with Pandas

Build a lightweight capacity planning model in Python Pandas using flow diagrams, throughput estimates, and GROUP BY operations to estimate CPU requirements and infrastructure cost. Apply Operations Research concepts to size a simple web...

comments

Data Exploration with Data Viz Cheat Sheet

Witness practical Pandas, Seaborn, and Matplotlib techniques for exploring machine learning datasets using the UCI Abalone database. Includes histograms, KDE plots, boxplots, correlation heatmaps, PCA, regression plots, and multidimensional...

comments

Aggregations - The Elasticsearch GROUP BY

Elastic Architects designed the distributed Elasticsearch platform to follow NoSql principles. In the traditional Relational Database Management System (RDBMS) world, SQL databases use GROUP BY syntax to group rows with similar values into...

comments

Configure Flask to Send Form Data to Gmail

This blog post describes how to configure Flask to emit form data to your own personal Gmail account. You don't need to use Gmail, in fact, you can configure Flask to send data to any email account you have access to. This architecture uses...

comments

Easy ReCAPTCHA with Flask-WTF

In this HOWTO, I will demonstrate how to easily integrate the Google reCAPTCHA service into a Flask web application using Flask-WTF. The following cartoon depicts the end result. A Flask application server provides a simple (beautified) survey to...

comments

Connect AWS Lambda to Elasticsearch

Amazon Web Services' (AWS) Lambda provides a serverless architecture framework for your web applications. You deploy your application to Lambda, attach an API Gateway and then call your new service from anywhere on the web. Amazon takes care of...

comments

Pass Bootstrap HTML attributes to Flask-WTForms

Flask-WTForms helps us create and use web forms with simple Python models. WTForms takes care of the tedious, boring and necessary security required when we want to use data submitted to our web app via a user on the Internet. WTForms makes data...

comments

Professional form validation with Bootstrap

In this tutorial you will: Connect a Flask server to the Bootstrap service Create a trivial Jinja2 template for a Quiz form Use Bootstrap to validate forms on the client side Use a Flask "flash" message to validate forms on the server side Let's...

comments