Changes how the latest version is taken from a list of versions and cuts out obsolete versions on the homepage
- [ ] closes Better management of releases in the pandas home page #50885
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

I'm still really struggling to import the pandas_web.py file from my test file inside the test folder. I've tried following some guides, but none of it seems to import the file correctly. What would you do to make this happen? > I'm still really struggling to import the pandas_web.py file from my test file inside the test folder. I've tried following some guides, but none of it seems to import the file correctly. What would you do to make this happen?

Just use `import pandas_web`, if you call `python -m pytest web/`, the directory `web/` will be added to the python path, and that will work.

The problem I see is that we've got some custom addoptions in the project `pyproject.toml` that will make tests fail if the `pandas/conftest.py` is used. You may see the error `__main__.py: error: unrecognized arguments: --strict-data-files`. I think the best to fix it is to have a `web/pyproject.toml` file with simply `[tool.pytest.ini_options]` in it. This will make pytest ignore the root `pyproject.toml` and let the tests run. This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. @JustinAmstadt do you have time to finish this? Thank you!