input_year = input('Введите год: ')
df = pd.DataFrame({
'date':pd.date_range('2021-01-01', periods=1000),
'temperature':np.random.uniform(-10,10,1000)})
selected_year = (df.set_index('date').loc[input_year]).copy()
selected_year
order = list(df['Шифр дисциплины'].str.split('.').str.get(0).unique())
cat.categories