I want to. Delete some levels from dataset

I want to delete levels of variable in dataset .I used droplevels tag but it not work

© Copyright 2013-2019 Analytics Vidhya