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