.drop function

Hi,
Why we use the data.drop(columns=“class”)) in one example and the data.drop(columns= [ ,“class” ]) in another ? Many thanks
gabriel

Both are equivalent and this is just a matter of taste.