<jupyter_start><jupyter_text>Introduction to Emmer<jupyter_code>import sys
sys.path.append('..')
import Emmer
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import warnings
warnings.filterwarnings('ignore')
df = pd.DataFrame(np.random.randn(6,4), index=['R%d'%i for i in xrange(1,7)], columns=['col.'+i for i in 'ABCD'])
df
h = Emmer.EMHeat(df, 
                 yticklabels=True, yticklabel_fontsize=18, yticklabel_side='r', 
                 xticklabels=True, xticklabel_side='t', xticklabel_rotat=0, xticklabel_fontsize=18)
h.plot()
cv = Emmer.EMCanvas()
cv.add(Emmer.EMHeat(df), name='h1')
cv.add(Emmer.EMHeat(np.arange(10).reshape(5,2)), Emmer.RightOf('h1'))
cv.add(Emmer.EMCbar(range(4)), Emmer.TopOf('h1'))
cv.x
cv.layout()
cv.plot()
df.shape
pd.DataFrame(pd.Series(np.arange(10).reshape(5,2).flatten())).T<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17155756207674944, 'fraction_numerical': 0.023702031602708805, 'mean_word_length': 5.71969696969697, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '186168', 'license': 'MIT', 'n_tokens_mistral': 371, 'n_tokens_neox': 359, 'n_words': 60, 'path': 'ipynb/Introduction.ipynb', 'repo_name': 'zwdzwd/Emmer', 'size': '886'}