import numpy as np
import pandas as pd
%matplotlib inline
m = np.arange(1, 10).reshape(3, 3)
df = pd.DataFrame(m, columns=["a", "b", "c"])
df
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
a | b | c | |
---|---|---|---|
0 | 1 | 2 | 3 |
1 | 4 | 5 | 6 |
2 | 7 | 8 | 9 |
$ nbreversible 01dataframe.py | tee 01dataframe.ipynb
$ jupyter-nbconvert --to markdown --execute 01dataframe.ipynb
$ shosai hatena push 01dataframe.md
普通に、raw htmlもhatena blogは対応しているっぽい。なるほど。
この時に利用したファイルのgist