From a03ce3d647cfb14a1bbedc67f78d8a8c60a84cdb Mon Sep 17 00:00:00 2001 From: mmaurostoffel <166130318+mmaurostoffel@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:11:23 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen=20von=20bevor=20Monorepo=20?= =?UTF-8?q?=C3=BCbernommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etl/src/mauro/data_quality.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etl/src/mauro/data_quality.py b/etl/src/mauro/data_quality.py index b426ff9..9036a2c 100644 --- a/etl/src/mauro/data_quality.py +++ b/etl/src/mauro/data_quality.py @@ -70,6 +70,8 @@ yRange = range(len(dates)) matrix = matrix.T plt.imshow(matrix) plt.yticks(yRange[::5], dates[::5]) +plt.xlabel("Property ID") +plt.ylabel("Scrape Date") # Create DiffMatrix diffMatrix = np.zeros((len(matrix)-1, len(matrix[0]))) @@ -78,6 +80,8 @@ for y in range(len(matrix[0])): diffMatrix[x][y] = abs(matrix[x][y] - matrix[x+1][y]) plt.figure() -plt.imshow(diffMatrix) +plt.imshow(diffMatrix, cmap="Reds") plt.yticks(yRange[::5], dates[::5]) +plt.xlabel("Property ID") +plt.ylabel("Scrape Date") plt.show() \ No newline at end of file