Skip to content

Commit

Permalink
Insure datetimes are passed as timestamps, as expected by variogram c…
Browse files Browse the repository at this point in the history
…lass (#214)
  • Loading branch information
sssangha authored Nov 15, 2020
1 parent 7601d31 commit 92bd586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/RAiDER/statsPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ def _reader(self):
try:
data = pd.read_csv(self.fname, parse_dates = ['Datetime'])
data['Date'] = data['Datetime'].apply(lambda x: x.date())
data['Date'] = data['Date'].apply(lambda x: dt.datetime.strptime(x.strftime("%Y-%m-%d"),"%Y-%m-%d"))
except:
data = pd.read_csv(self.fname, parse_dates = ['Date'])

Expand Down

0 comments on commit 92bd586

Please sign in to comment.