File: fix-pandas-futurewarning.patch

package info (click to toggle)
python-ulmo 0.8.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,100 kB
  • sloc: python: 6,752; makefile: 145
file content (15 lines) | stat: -rw-r--r-- 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: This patch removes a deprecated call to pandas causing a FutureWarning.
Origin: https://github.com/ulmo-dev/ulmo/pull/157
Last-Updated: 2018-08-19

--- a/ulmo/twc/kbdi/core.py
+++ b/ulmo/twc/kbdi/core.py
@@ -17,7 +17,7 @@
 
 from ulmo import util
 
-CSV_SWITCHOVER = pandas.tslib.Timestamp('2016-10-01')
+CSV_SWITCHOVER = pandas.Timestamp('2016-10-01')
 
 def get_data(county=None, start=None, end=None, as_dataframe=False, data_dir=None):
     """Retreives data.