taking care of pandas timestamps
added test for DataFrame with datetime index