<jupyter_start><jupyter_text><jupyter_code>import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
!pip install japanize_matplotlib
import japanize_matplotlib #日本語化matplotlib
import seaborn as sns
sns.set(font="IPAexGothic") #日本語フォント設定
from scipy import stats
%matplotlib inline

x=[2,5,9]
px=[1/2,1/3,1/6]
n=10
d=np.random.choice(x,p=px,size=n)
dfdata=pd.DataFrame(data={'目':d})

dfdata.describe()
dfdata.head()
ax=dfdata.hist() # なんか, 二重の中に入ってるのね
for x in ax:
  for y in x:
    y.set_xlabel("目")
    y.set_ylabel("Frequency")
    y.set_title("目のヒストグラム")
    y.set_ylim([0,10])
ax[0][1].set_xlabel("目")
dfdata.boxplot()
from scipy import stats
stats.uniform.rvs(loc=2,scale=3,size=10)
stats.randint.rvs(low=3,high=8,size=20)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15454545454545454, 'fraction_numerical': 0.03116883116883117, 'mean_word_length': 6.5588235294117645, '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': '590880', 'license': 'MIT', 'n_tokens_mistral': 372, 'n_tokens_neox': 363, 'n_words': 60, 'path': 'prob.ipynb', 'repo_name': 'hig3r/cstest', 'size': '770'}