Repository navigation
Conversation
Parse the Collector output index with index.map(pd.Timestamp) so the
first bare-date row ("2012-06-01") doesn't fix the inferred format for
later rows with times, and use the 'h' resample alias ('H' was removed
in pandas 3).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ipykernel 7 now depends on nest-asyncio2 instead of nest_asyncio, so the notebooks' `import nest_asyncio` fails in a fresh environment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Make tutorial helpers work with pandas 1.5 and pandas 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings #28 from
devtomain.Why
A fresh setup of
main(conda env fromenvironment.yml: Python 3.11,illuminator3.1b1 from PyPI) currently fails all 4 tutorial notebooks withModuleNotFoundError: No module named 'nest_asyncio'. The notebooks import it, butenvironment.ymlnever listed it; it used to arrive throughipykernel, and neweripykerneldepends onnest_asyncio2instead. Checked locally today: 4 failed onmain.What (3 files, +5/−4)
environment.yml: addnest-asyncio.tutorials/power_balance/functions_T1.py,tutorials/physical_congestion/functions_T3.py: parse the output date index per value and useresample('h'), so the helpers work with both pandas 1.5 and pandas 3 (needed for the upcoming Illuminator release).devCI (Test Examples) passes with illuminator 3.1b1 from PyPI.