Matrix Embedding#

Matrix Embedding Module

This module contains functions for embedding PV power time series data into a matrix

solardatatools.matrix_embedding.find_start_end(arr)#
solardatatools.matrix_embedding.make_2d(df, key='dc_power', trim_start=False, trim_end=False, return_day_axis=False)#

This function constructs a 2D array (or matrix) from a time series signal with a standardized time axis. The data is chunked into days, and each consecutive day becomes a column of the matrix.

Parameters:
  • df – A pandas data frame contained tabular data with a standardized time axis.

  • key – The key corresponding to the column in the data frame contained the signal to make into a matrix

Returns:

A 2D numpy array with shape (measurements per day, days in data set)