Iam working with dataset with year as the column name. Is there way to slice it.
here below is the example. I want to slice dataframe with customer count 0.
df.loc[df.2020==0,:]
this yields error.
Department 2016 2017 2018 2019 2020
Electronics 2030 1029 1839 893 20
Babyshop 2030 1029 1839 893 0
Grocery 2030 1029 1839 893 2
Hardware 2030 1029 1839 893 10