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

PerformanceWarning: Determining the column names of a LazyFrame requires resolving its schema, which is a potentially expensive operation. #254

Open
david-waterworth opened this issue Oct 2, 2024 · 0 comments

Comments

@david-waterworth
Copy link

david-waterworth commented Oct 2, 2024

I installed rev 0232fe4 which appears to work, but now there's a lot of warnings due to code like

    if isinstance(X, pl.DataFrame):
        X = X.lazy()

    entity_col = X.columns[0]

To suppress I think the following is required

    if isinstance(X, pl.DataFrame):
        X = X.lazy()

    entity_col = X.collect_schema().names()[0]

/home/dave/dev/timeseries-analysis/.venv/lib/python3.10/site-packages/functime/cross_validation.py:129: PerformanceWarning: Determining the column names of a LazyFrame requires resolving its schema, which is a potentially expensive operation. Use LazyFrame.collect_schema().names() to get the column names without this warning.

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

1 participant