BUG: Fix data cache filepath on Windows.

Prevent the ':' char, generated by converting a datetime to a string,
from creating on incompatible filepath for Windows.
This commit is contained in:
Eddie Hebert
2013-11-18 20:37:45 -05:00
parent e9dbffbbaa
commit 50800a9863
+1 -1
View File
@@ -260,7 +260,7 @@ must specify stocks or indexes"""
cache_filename = "{stock}-{start}-{end}.csv".format(
stock=stock,
start=start,
end=end)
end=end).replace(':', '-')
cache_filepath = get_cache_filepath(cache_filename)
if os.path.exists(cache_filepath):
stkd = pd.DataFrame.from_csv(cache_filepath)