Skip to content

Commit c714918

Browse files
authored
Merge pull request #597 from MicBan/patch-1
Allow data download from Poland
2 parents fb8a41f + 14ccb1b commit c714918

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas_datareader/stooq.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ def _get_params(self, symbol, country='US'):
4040
if not symbol.startswith('^'):
4141
if len(symbol_parts) == 1:
4242
symbol = ".".join([symbol, country])
43+
elif symbol_parts[1].lower() == 'pl:
44+
symbol = symbol_parts[0]
4345
else:
4446
if symbol_parts[1].lower() not in ['de', 'hk', 'hu', 'jp',
45-
'pl', 'uk', 'us']:
47+
'uk', 'us']:
4648
symbol = ".".join([symbol, 'US'])
4749

4850
params = {

0 commit comments

Comments
 (0)