Jan-12-2021, 05:21 AM
I know little about pandas, but you are getting an error because this is a function call.
data([data['Harmonised System Code'].str.slice(0,3) == '2013'])I'm guessing "data" is a dataframe, not a function.