Data-Processing

AI

[Python] Downsample Time-Series Data

higashi Hi, I’m Higashi. Here’s how to resample time-series data at a larger, regular interval. The example uses linear ...
AI

[Python] Reorder or Shuffle an Array

higashi Hi, I’m Higashi. Here’s how to reorder a NumPy array using a list of indexes. The same technique also lets you s...
Python

[Python and OpenCV] Overlay a Transparent Matplotlib Plot on an Image

higashi Hi, I’m Higashi. Here’s how to overlay a Matplotlib plot on an image while making the plot’s white background tr...
Python

[Python and pandas] Compare the Contents of Two Text Files

higashi Hi, I’m Higashi. Here’s how to compare the contents of two text files. The example reports which lines differ wh...
AI

[Python] Remove Noise From Time-Series Data

higashi Hi, I’m Higashi. While preparing data for a machine-learning model, I came across the time series below. It star...