so
sampleinfo["month"] = map(lambda x: x.month, sampleinfo.date)
will put all of the sampleinfo.date value to x function, which will get all the month value and put it in the sampleinfo["month"] list.
so
sampleinfo["month"] = map(lambda x: x.month, sampleinfo.date)