Makes a scatter plot of data using shape_col as seperation.
plot_scatter_shape(data=None, cols=None, shape_col='', col_y='', alpha=0.2):''' Parameters ------------ data: Dataframe The data that is being imported using pandas. cols: list The chosen number of columns in the DataFrame. shape_col: The categorical column you want it to show as legend. col_y: The y axis of the plot '''
Examples
We are using the classic iris data set and a Jupyter notebook in the following examples.
plot_scatter_shape can be created for every column in a DataFrame: