Find Patterns in Cluster I have a heatmap and I would like to find some rectangles.


I have already used clustermap. But here, I can not calculate these rectangles.
The order of the data should not be changed.

This Code is not working: 

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
tips2 = pd.read_csv('heatmapExport.csv')
sns.set(color_codes=True)
g = sns.clustermap(tips2, cbar="false")
plt.show()


Does somebody have an idea?

Thanks a lot

Here is an example of what I want:
Based on your description I think you should have a look at a technique called 'biclustering'. 

The example on this page defines the goal of this technique as 'Finding subgroups of rows and columns which are as similar as possible to each other and as different as possible to the rest.'

Since your examples are python-based, you could check out scikit-learn's implementations of biclustering.