improved dataframe example to avoid confusion
- [x] closes #41180
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry

Thanks @regmibijay. The CI failure looks unrelated 