Last Updated on October 26, 2022 by shibatau
VII is added.
I. Xonsh
You can create a chart quickly and easily using Xonsh. See my post about Xonsh:
Get started with xonsh (Python + Shell)
II. The data
We can get the data at ACLED:
III. Creating a virtual environment
You should create a virtual environment. See my post:
How to use Pyenv + Pyenv-virtualenv\
IV. The codes
pip install pandas
pip install --upgrade xlrd
pip install plotly-express
import pandas as pd
df = pd.read_excel('Ukraine_Black_Sea_2020_2022_Oct14-1_copy.xlsx')
import plotly.express as px
fig = px.bar(df, x='EVENT_DATE', y='FATALITIES')
fig.show()
This is the table shown when you run df.info() on Xonsh

V. Creating a bar chart using Neovim + Xonsh

VI. Using Google Colaboratory
This is the easiest way to run the Python codes. You don’t have to create a virtual environment for yourself and you can also create a chart quickly enough. See the codes on Google Colaboratory:
https://colab.research.google.com/drive/18PIB1V66sSqR9N3nFjs7nO44iYRgm9zb?usp=sharing
VII. Assassination of Shinzo Abe
