Department = input("Is there a list you would like to view")
readfile = pd.read_csv('6.csv')
filevalues= readfile.loc[readfile['Customer'].str.contains(Department, na=False), 'June-18\nQty']
filevalues = filevalues.fillna(int(0))
int_series = filevalues.values.astype(int)
calculated_series = int_series.apply(lambda x: filevalues*1.3)
print(filevalues)
I am getting this error : AttributeError: 'numpy.ndarray' object has no attribute 'apply'
I have looked through this website and no solutions seems to work. I simply want to multiply the data by 1.3 in this series. Thank you
int_series * 1.3?int_series * 1.3does multiply every value in the series by 1.3applyfunction innumpyarrays. There are, though, inpandas.Seriesobjects, which you would have if you didfilevalues.astype(int)instead offilevalues.values.astype(int)