I read that the apply function takes the entire series as the input and apply the custom function to that series. However I applied the below function to a col in a dataframe and it worked as if It was passing data element wise (because it was spliting each value in that column and I fail to understand how it could be done on a column as a whole)
def get_date(value):
value_str = str(value)
d = value_str.split("T")
d1 = pd.to_datetime(d[0])
return d1
In this context, it would be great if someone can clearly make a distinction between apply and applymap in python.