I'm using kaggle to test my strategies on the cloud.
Today an error occurs:
KeyError: "cannot represent labeled-based slice indexer for coordinate 'time' with a slice over integer positions; the index is unsorted or non-unique"
Then I check the installation of the packages. I found that pandas 1.2.5 was not successfully installed, which cause the error.
The error results from the wrong version of pandas, but I cannot install pandas 1.2.5, so I cannot fix the error.
Does anyone know how to install pandas 1.2.5 on kaggle?
I may need some help from @support
Thx very much
Best posts made by omohyoid
-
I cannot install pandas 1.2.5
Latest posts made by omohyoid
-
Can I use astronomical data as features for my machine learning model?
@support I know it sounds strange, but I want to use the distances between the sun and moon and related astronomical data for each trading day as features for my model. The data sources are obtained through mathematical calculations using an open-source Python module, rather than through web scraping.
Here is the link to this Python open-source module.
https://rhodesmill.org/skyfield/ -
RE: QNT failed to load data after 2006-01-01
@support I got it. Thanks for ur reply
-
QNT failed to load data after 2006-01-01
I submitted my strategy
but it failed due to data loading from qnt
the output shows that the data loading from qnt ranges from 2004-11-01 to 2005-12-30
the code I submitted is:
start_date, end_date, prepare_date = '2006-01-01', datetime.now().strftime('%Y-%m-%d'), '2004-11-01'
data = qndata.stocks_load_spx_data(min_date = prepare_date, max_date = end_date)
but qnt didn't load the data after 2006-01-01
@support
I would like to know how to fix the problem
-
Can't download assets
After I upgrade to the latest version of qnt library(0.0.406)
An error appears
"Exception: can't download assets"
@support Is there a bug in the latest version of qnt?

-
RE: How to turn off "WARNING: some dates are missed in the portfolio_history"
@support Thanks for ur help
Is there a way to turn off the warning from the outside of the qnt module? I hope that I can just add a line in my strategy code to call something in the qnt module to remove the warning. -
How to turn off "WARNING: some dates are missed in the portfolio_history"
I'm using partial data for testing the performance for machine learning models.
qnt module outputs such warning:
WARNING: some dates are missed in the portfolio_history
I'd like to turn off this warning
But I don't know how to do
Can @support give an example for how to turn off this specific warning?
-
RE: No error messages show why the strategies failed
@support
Do u mean that I should not have these line in my codes?
Should I delete those lines(environ['...'] = '...')?