<jupyter_start><jupyter_text>* 前言* 开始准备用jupyter写推荐，强化学习和大数据相关的项目，打算通过这个方式激励学习实验能力，打发无聊时光。* 2019-01-07  shell 交互<jupyter_code>files = !ls
print files
directory = !pwd
print type(directory), directory[0]<jupyter_output><empty_output><jupyter_text>风格变换<jupyter_code>!jt - l
!jt - t chesterish
!jt - r<jupyter_output>Available Themes: 
   chesterish
   grade3
   gruvboxd
   gruvboxl
   monokai
   oceans16
   onedork
   solarizedd
   solarizedl<jupyter_text>grid表格操作<jupyter_code>import numpy as np
import pandas as pd
dlist = list(range(10))
data = pd.DataFrame({'a': dlist, 'b': dlist})
data.head()
import qgrid
qgrid_widget = qgrid.show_grid(data, show_toolbar=True)
qgrid_widget<jupyter_output><empty_output><jupyter_text>制图工具 Altair<jupyter_code>import altair as alt
from vega_datasets import data

alt.renderers.enable('notebook')
iris = data.iris()

alt.Chart(iris).mark_point().encode(
    x='petalLength',
    y='average(petalWidth)',
    color='species'
)
iris.head()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11747285291214216, 'fraction_numerical': 0.013820335636722606, 'mean_word_length': 6.041666666666667, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '501834', 'license': 'Apache-2.0', 'n_tokens_mistral': 465, 'n_tokens_neox': 466, 'n_words': 67, 'path': 'jupyter_learning.ipynb', 'repo_name': 'lihongqiang/recsys', 'size': '1013'}