CSV to SQLite3

Story: Assume you work for the Finxter Academy. Your boss asks you to import an existing CSV file containing fictitious users to SQLite3. What is SQLite3, you ask! SQLite3 is an ANSI-C source-code file that offers a light-weight database with the following qualities: Easy to compile and incorporate into projects. No external dependencies. Supports cross-platforms. … Read more

How to Select Rows From a DataFrame Based on Column Values

Problem Statement: Selecting rows from a Dataframe based on the column values. Introduction DataFrame (A Quick Recap) A DataFrame is a 2-dimensional data structure that is generally immutable and heterogeneous. It has labelled axes – rows and columns. A Pandas Dataframe comprises three parts: data, rows, and columns. Now let’s create a Dataframe. We are … Read more

Part 3: Email a PDF in Python

Story: This series of articles assume you are an employee of the City of Sacramento’s IT Department. At the end of each month, a CSV file is sent to the Chief of Police outlining the crime statistics for the current month. However, the Chief prefers to view the output in a styled PDF format based … Read more

Part 2: CSV to PDF

Story: This series of articles assume you are an employee of the City of Sacramento’s IT Department. At the end of each month, a CSV file is sent to the Chief of Police outlining the crime statistics for the current month. However, the Chief prefers to view the output in a styled PDF format based … Read more

Serialize DataFrame to_gbq() and to_coo()

This article focuses on the serialization and conversion methods of a Python DataFrame: to_gbq(), to_coo(). Let’s get started! Preparation Before any data manipulation can occur, four (4) new libraries will require installation. The Pandas library enables access to/from a DataFrame. The NumPy library supports multi-dimensional arrays and matrices in addition to a collection of mathematical … Read more

Serialize DataFrame to Parquet, Feather, String, Styler

This article focuses on the serialization and conversion methods of a Python DataFrame: to_parquet(), to_feather(), to_string(), Styler. Let’s get started! Preparation Before any data manipulation can occur, three (3) new libraries will require installation. The Pandas library enables access to/from a DataFrame. The Pyarrow library allows writing/reading access to/from a parquet file. The Openpyxl library … Read more