<jupyter_start><jupyter_text><jupyter_code>import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/JimKing100/med_cab/master/data/cannabis.csv')
df.head()
df.shape
df.nunique
df['Strain'].unique()
df['Type'].unique()
df2 = df['Effects'].str.split(',').apply(pd.Series)
df2.index = df['Strain']
df2 = df2.stack().reset_index('Strain')
df2 = df2.rename(columns={0: 'Effects'})
df2['Effects']
df2['Effects'].unique()
df3 = df['Flavor'].str.split(',').apply(pd.Series)
df3.index = df['Strain']
df3 = df3.stack().reset_index('Strain')
df3 = df3.rename(columns={0: 'Flavor'})
df3['Flavor']
df3['Flavor'].unique()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.23006134969325154, 'fraction_numerical': 0.032208588957055216, 'mean_word_length': 7.592105263157895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '387166', 'license': 'MIT', 'n_tokens_mistral': 271, 'n_tokens_neox': 267, 'n_words': 33, 'path': 'data_insights.ipynb', 'repo_name': 'JimKing100/med_cab', 'size': '652'}