text_html_output_1.png
from sklearn.impute import SimpleImputer

import matplotlib.pyplot as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

russian_equipment = pd.read_csv('../input/2022-ukraine-russian-war/russia_losses_equipment.csv', index_col='date', parse_dates=True)
russian_equipment

x_data = ['military auto', 'APC']

russian_personnel = pd.read_csv('../input/2022-ukraine-russian-war/russia_losses_personnel.csv', parse_dates=True)
russian_personnel

russian_personnel = russian_personnel.drop('personnel*', axis=1)
russian_personnel

from sklearn.impute import SimpleImputer
russian_personnel_copy = russian_personnel.drop('date', axis=1)
my_imputer = SimpleImputer()
imputed_data = pd.DataFrame(my_imputer.fit_transform(russian_personnel_copy))
imputed_data.columns = russian_personnel_copy.columns
imputed_data

russian_personnel_copy = russian_personnel.fillna(0)
russian_personnel_copy

plt.figure(figsize=(20, 6))
sns.lineplot(data=russian_personnel_copy, x='date', y='personnel')
plt.show()