I have a data frame with a column called \"Date\" and want all the values from this column to have the same value (the year only). Example:
\"Date\"
City
Or if one want to use lambda function in the apply function:
lambda
apply
data['Revenue']=data['Revenue'].apply(lambda x:float(x.replace("$","").replace(",", "").replace(" ", "")))