<jupyter_start><jupyter_text>DAT210x - Programming with Python for DS  Module3 - Lab2<jupyter_code>import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
# Look pretty...

# matplotlib.style.use('ggplot')
plt.style.use('ggplot')<jupyter_output><empty_output><jupyter_text>Load up the wheat seeds dataset into a dataframe. We've stored a copy in the Datasets directory.<jupyter_code># load wheat data
df = pd.read_csv('Datasets\wheat.data')
df.head()<jupyter_output><empty_output><jupyter_text>Create a 2d scatter plot that graphs the `area` and `perimeter` features:<jupyter_code>def plot_scatter(frame, pyp, x, y,r,marker, title, xlab, ylab):
    frame.plot.scatter(x=x,y=y,c='r',marker='*')
    pyp.suptitle(title)
    pyp.xlabel(xlab)
    pyp.ylabel(ylab)
    pyp.show()
    
plot_scatter(df, plt, 'area', 'perimeter', 'r', '*', 'area vs perimeter', 'area', 'perimeter')


#df.plot.scatter(x='area',y='perimeter',c='r',marker='*')
#plt.suptitle('area Vs perimeter')
#plt.xlabel('area')
#plt.ylabel('perimeter')
#plt.show()<jupyter_output><empty_output><jupyter_text>Create a 2d scatter plot that graphs the `groove` and `asymmetry` features:<jupyter_code>plot_scatter(df, plt, 'groove', 'asymmetry', 'groove vs asymmetry', 'groove', 'asymmetry')<jupyter_output><empty_output><jupyter_text>Create a 2d scatter plot that graphs the `compactness` and `width` features:<jupyter_code>plot_scatter(df, plt, 'compactness', 'width', 'compactness vs width', 'compactness', 'width')<jupyter_output><empty_output><jupyter_text>BONUSAfter completing the above, go ahead and run your program Check out the results, and see what happens when you add in the optional display parameter marker with values of either `'^'`, `'.'`, or `'o'`:<jupyter_code># .. your code here ..
plot_scatter(df, plt, 'area', 'perimeter', 'r', 'o', 'area vs perimeter', 'area', 'perimeter')
plot_scatter(df, plt, 'groove', 'asymmetry', 'g', '^', 'groove vs asymmetry', 'groove', 'asymmetry')
plot_scatter(df, plt, 'compactness', 'width', 'b', '^', 'compactness vs width', 'compactness', 'width')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16191832858499525, 'fraction_numerical': 0.003798670465337132, 'mean_word_length': 7.0727969348659006, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '438698', 'license': 'MIT', 'n_tokens_mistral': 791, 'n_tokens_neox': 765, 'n_words': 187, 'path': 'Module3/Module3 - Lab2.ipynb', 'repo_name': 'vrushalipatel/aardwolf', 'size': '2106'}