Skip to content
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

Help, keep looping a future warning when running all strategies on script! #630

Open
shingtat2 opened this issue Dec 28, 2023 · 5 comments

Comments

@shingtat2
Copy link

Hi all,

Anyone can help on my issue?

environment
Python 3.10.11
Ta-lib installed

Code:
df.ta.strategy(verbose=False, append=True)

Keep looping below message and stuck forever:
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py:48: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos]
return list(map(*args))

Have tried all ways to disable warnings eg:

# Save the current warning settings
current_warnings = warnings.filters.copy()
# Suppress all warnings
warnings.filterwarnings('ignore')
# Redirect standard output to null
sys.stdout = open(os.devnull, 'w')
# Suppress logging
logger = logging.getLogger()
original_level = logger.getEffectiveLevel()
logger.setLevel(logging.CRITICAL + 1)
# Suppress only FutureWarnings
warnings.simplefilter(action='ignore', category=FutureWarning)
warnings.simplefilter(action='ignore', category=all)
@mrjbq7
Copy link
Collaborator

mrjbq7 commented Dec 28, 2023 via email

@shingtat2
Copy link
Author

What is df.ta.strategyOn Dec 28, 2023, at 9:50 AM, shingtat2 @.*> wrote: Hi all, Anyone can help on my issue? environment Python 3.10.11 Ta-lib installed Code: df.ta.strategy(verbose=False, append=True) Keep looping below message and stuck forever: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py:48: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] return list(map(args)) Have tried all ways to disable warnings eg: # Save the current warning settings current_warnings = warnings.filters.copy() # Suppress all warnings warnings.filterwarnings('ignore') # Redirect standard output to null sys.stdout = open(os.devnull, 'w') # Suppress logging logger = logging.getLogger() original_level = logger.getEffectiveLevel() logger.setLevel(logging.CRITICAL + 1) # Suppress only FutureWarnings warnings.simplefilter(action='ignore', category=FutureWarning) warnings.simplefilter(action='ignore', category=all) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

It's "all" strategy by default

@mrjbq7
Copy link
Collaborator

mrjbq7 commented Dec 28, 2023 via email

@shingtat2
Copy link
Author

Right but that code doesn’t come from this project, so without knowing what it is; I can’t help.

On Thu, Dec 28, 2023 at 10:04 AM shingtat2 @.> wrote: What is df.ta.strategyOn Dec 28, 2023, at 9:50 AM, shingtat2 @.> wrote: Hi all, Anyone can help on my issue? environment Python 3.10.11 Ta-lib installed Code: df.ta.strategy(verbose=False, append=True) Keep looping below message and stuck forever: C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\multiprocessing\pool.py:48: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos] return list(map(args)) Have tried all ways to disable warnings eg: # Save the current warning settings current_warnings = warnings.filters.copy() # Suppress all warnings warnings.filterwarnings('ignore') # Redirect standard output to null sys.stdout = open(os.devnull, 'w') # Suppress logging logger = logging.getLogger() original_level = logger.getEffectiveLevel() logger.setLevel(logging.CRITICAL + 1) # Suppress only FutureWarnings warnings.simplefilter(action='ignore', category=FutureWarning) warnings.simplefilter(action='ignore', category=all) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.> It's "all" strategy by default — Reply to this email directly, view it on GitHub <#630 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF5AZWIBP5GXVOETTMUHDYLWYCZAVCNFSM6AAAAABBFX7W2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGM4DMNZYGM . You are receiving this because you commented.Message ID: @.***>

import pandas_ta as ta

I use pandas_ta and it says the all strategy has to install the ta-lib as well.
so did I come to the wrong place, should I go to the pandas-ta section?

@mrjbq7
Copy link
Collaborator

mrjbq7 commented Dec 28, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants