ENH: Remove defaults from get_benchmark_data.

This commit is contained in:
Scott Sanderson
2015-10-22 11:31:49 -04:00
parent d82cfb1e64
commit df4cda4dc9
+1 -6
View File
@@ -42,15 +42,10 @@ def format_yahoo_index_url(symbol, start_date, end_date):
)
def get_benchmark_returns(symbol, start_date=None, end_date=None):
def get_benchmark_returns(symbol, start_date, end_date):
"""
Get a Series of benchmark returns from Yahoo.
"""
if start_date is None:
start_date = pd.Timestamp(0, tz='UTC')
if end_date is None:
end_date = pd.Timestamp('now', tz='UTC')
data = pd.read_csv(
format_yahoo_index_url(symbol, start_date, end_date),
parse_dates=['Date'],