RaspberryPi

Thumbnail of post image 034

GrovePiのサンプルプログラムを動作させる際のエラーの解決法を記録する。

ただ単に、sudo python grove_pir_motion_sensor.py で実行すれば良いだけだった。

Pandas,Python

Thumbnail of post image 068
import pandas as pdfrom collections import Counterd = Counter({'A': 1, 'B': 2, 'C': 3})df = pd.DataFrame.from_dict(d, or ...

Python

Thumbnail of post image 020

import matplotlib.pyplot as pltplt.bar(, )plt.xticks(rotation=90)# plt.show()plt.savefig('fig.png')m

マイナス値を入れることも可能