How to create a new dataframe based on date interval from an existing dataframe:
df=pd.DataFrame([["01.01.18",32],
["01.01.18",8],
["01.01.18",12],
["01.01.18",77],
["02.01.18",99],
["03.01.18",78],
["04.01.18",89],
["02.02.18",85],
["10.03.18",35],
["13.04.18",81],
["03.02.18",97],
["29.03.18",90],
["08.04.18",7]],columns=["date","payment"])
How do I create a dataframe with date values between 01.01.18 and 31.01.18, so the new df would look like:
Date Payment
01.01.18, 32
01.01.18, 8
01.01.18, 12
01.01.18, 77
02.01.18, 99
03.01.18, 78
04.01.18, 89