How to use the dython.nominal.associations function in dython

To help you get started, we’ve selected a few dython examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shakedzy / dython / dython / examples.py View on Github external
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'])