Skip to content

CLN: Remove landscape caught errors #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pandas_datareader/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ def get_iex_book(*args, **kwargs):

:return: Object
"""
from pandas_datareader.iex.deep import Deep
return Deep(*args, **kwargs).read()
return IEXDeep(*args, **kwargs).read()


def DataReader(name, data_source=None, start=None, end=None,
Expand Down
4 changes: 2 additions & 2 deletions pandas_datareader/iex/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def read(self):
dfs = []
for date in (self.start + timedelta(n) for n in range(tlen.days)):
self.curr_date = date
tdf = super(IEX, self).read()
tdf = super(DailySummaryReader, self).read()
dfs.append(tdf)
return pd.concat(dfs)

Expand Down Expand Up @@ -99,7 +99,7 @@ def read(self):

for date in lrange:
self.curr_date = date
tdf = super(IEX, self).read()
tdf = super(MonthlySummaryReader, self).read()

# We may not return data if this was a weekend/holiday:
if not tdf.empty:
Expand Down
2 changes: 1 addition & 1 deletion pandas_datareader/tests/test_iex.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_read_iex(self):
def test_historical(self):
df = get_summary_iex(start=datetime(2017, 4, 1),
end=datetime(2017, 4, 30))
assert df["averageDailyVolume"].iloc[0] == 137650908.9
assert df.T["averageDailyVolume"].iloc[0] == 137650908.9

def test_false_ticker(self):
df = get_last_iex("INVALID TICKER")
Expand Down
4 changes: 2 additions & 2 deletions pandas_datareader/yahoo/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def _option_from_url(self, url):
calls = _parse_options_data(calls)
puts = _parse_options_data(puts)

calls = self._process_data(calls, 'call')
puts = self._process_data(puts, 'put')
calls = self._process_data(calls)
puts = self._process_data(puts)

return {'calls': calls, 'puts': puts}

Expand Down