text_plain_output_1.png image_output_2.png image_output_1.png
from sklearn.impute import SimpleImputer

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

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

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