-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Comments
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 |
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. |
It is possible the error is in this project but I haven’t seen that warning before, so perhaps start with them:https://github.com/twopirllc/pandas-taOn 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, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
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:
The text was updated successfully, but these errors were encountered: