import pandas as pd rng = pd.date_range("20150101","20150620",freq="D") for day in rng: x = pd.to_datetime(day) y = x.timetuple().tm_wday if(y == 0) :print(x.strftime("%Y%m%d"))
I have selected all the monday form "20150101" till "20150620",how to make it more simple?
-- https://mail.python.org/mailman/listinfo/python-list