Chunking Large CSV file with pandas

When working with a large CSV file, instead of loading the entire file in memory for reading, you can read CSV files as chunks by reading only a part of the file at a time which uses very little memory. With the pandas read_csv() method by specifying the chunksize parameter, you can divide a largeContinue reading “Chunking Large CSV file with pandas”

Working with CSV File with Pandas (Python)

A Comma Separated Values (CSV) is the simplest form of storing data in tabular form as a plain text file. And these files (CSV) are often used for data exchange between different applications or sometimes used as an input for data-processing to get an insight about the data and to visualize it. Challenge How toContinue reading “Working with CSV File with Pandas (Python)”

Create a chart from Excel data in Python with matplotlib

In this post, you will learn how to use Pandas, Matplotlib, and BytesIO to visualize the data from an Excel file. The step we need is below: Read Excel file with Pandas. In this part, you can use CReadExcel or (CExcelFile & CSheet) classes from the previous post “How to read excel (xls, xlsx) fileContinue reading “Create a chart from Excel data in Python with matplotlib”

Convert Jupyter file (.ipynb) to Python file (.py) and Python file (.py) to executable file (.exe)

The main objective of this post is to convert IPython Notebook file (.ipynb) to standalone, one-file Windows executables (.exe) with no need for the installer for client setup, should work plug and play, and be as small as possible. Below are the steps you need: You can use Notebook Menu to save the file directlyContinue reading “Convert Jupyter file (.ipynb) to Python file (.py) and Python file (.py) to executable file (.exe)”

Know the anatomy of the Pandas Series

Pandas Series is a one-dimensional labeled-array that capable to hold of any data type. Labels must be a hashable type. And element in the series can be accessed similarly to ndarray from numpy library (to create ndarray need to import numpy library). Elements of a series can be accessed in two ways: position or label/index.Continue reading “Know the anatomy of the Pandas Series”