<jupyter_start><jupyter_text>https://github.com/nicolaskruchten/jupyter_pivottablejs<jupyter_code>import pandas as pd
import numpy as np
df = pd.DataFrame({'foo': ['one','one','one','two','two','two'],
                       'bar': ['A', 'B', 'C', 'A', 'B', 'C'],
                       'baz': [1, 2, 3, 4, 5, 6]})
df.pivot(index='foo', columns='bar', values='baz')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.23291139240506328, 'fraction_numerical': 0.015189873417721518, 'mean_word_length': 3.8292682926829267, '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': '291730', 'license': 'MIT', 'n_tokens_mistral': 161, 'n_tokens_neox': 150, 'n_words': 28, 'path': 'scriptedforms/pivot/Pivot.ipynb', 'repo_name': 'afcarl/Useful-python', 'size': '395'}