<jupyter_start><jupyter_text>Table of Contents1&nbsp;&nbsp;New in v0.4.02&nbsp;&nbsp;Changes3&nbsp;&nbsp;Setup4&nbsp;&nbsp;Data5&nbsp;&nbsp;Representation6&nbsp;&nbsp;Disable DataTables7&nbsp;&nbsp;Enable DataTables again  [Preview] Jupyter DataTables v0.4.0     New in v0.4.0- [x] Interactvie chart **Toolbar**- [x] Graph type selection via the toolbar settings- [x] autoloading- [x] disable/enable DataTables Changes- [x] Refactorings:    - `dTypePlotMap` -> `chartMap`  Setup<jupyter_code>%load_ext autoreload
%autoreload 2
import sys
import string

import numpy as np
import pandas as pd
sys.path.insert(0, '/home/macermak/code/jupyter-datatables/')
from jupyter_datatables import init_datatables_mode
init_datatables_mode()<jupyter_output><empty_output><jupyter_text>---  Data<jupyter_code>df      = pd.DataFrame(np.random.randn(50, 5), columns=list(string.ascii_uppercase[:5]))
df_long = pd.DataFrame(np.random.randn(int(1e5), 5), columns=list(string.ascii_uppercase[:5]))
df_wide = pd.DataFrame(np.random.randn(50, 20), columns=list(string.ascii_uppercase[:20]))

labels = ["{0} - {1}".format(i, i + 9) for i in range(0, 100, 10)]
df_categorical = pd.DataFrame({'value': np.random.randint(0, 100, 20)})
df_categorical['group'] = pd.cut(df_categorical.value, range(0, 105, 10), right=False, labels=labels)
dft = pd.DataFrame({'A': np.random.rand(5),
                    'B': [1, 1, 3, 2, 1],
                    'C': 'This is a very long sentence that should automatically be trimmed',
                    'D': [pd.Timestamp('20010101'), pd.Timestamp('20010102'), pd.Timestamp('20010103'), pd.Timestamp('20010104'), pd.Timestamp('20010105')],
                    'E': pd.Series([1.0] * 5).astype('float32'),
                    'F': [False, True, False, False, True],
                   })

dft.D = dft.D.apply(pd.to_datetime)
dft.set_index('D', inplace=True)

del dft.index.name<jupyter_output><empty_output><jupyter_text>---  Representation<jupyter_code>dft<jupyter_output><empty_output><jupyter_text>Disable DataTables<jupyter_code>from jupyter_datatables import disable_datatables_mode

disable_datatables_mode()<jupyter_output><empty_output><jupyter_text>The representation is now the standard pandas DataFrame<jupyter_code>df_long<jupyter_output><empty_output><jupyter_text>Enable DataTables again<jupyter_code>from jupyter_datatables import enable_datatables_mode

enable_datatables_mode()
df_long<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.144672131147541, 'fraction_numerical': 0.04262295081967213, 'mean_word_length': 5.474801061007957, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 26, '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': '549300', 'license': 'MIT', 'n_tokens_mistral': 954, 'n_tokens_neox': 881, 'n_words': 157, 'path': 'examples/jupyter-datatables-0.4.0.ipynb', 'repo_name': 'manuelkammermann/jupyter-datatables', 'size': '2440'}