Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def associations_example():
"""
Plot an example of an associations heat-map of the Iris dataset features
"""
iris = datasets.load_iris()
X = pd.DataFrame(data=iris.data, columns=iris.feature_names)
y = pd.DataFrame(data=iris.target, columns=['target'])
df = pd.concat([X, y], axis=1)
associations(df, nominal_columns=['target'])