Description
Location of the documentation
https://pandas.pydata.org/docs/getting_started/comparison/comparison_with_sql.html
Documentation problem
I'm getting started with Pandas. I went to the docs site and found a section called "getting started" which sounded good to me. It then had a few boxes for where you're coming from and one of them was "coming from SQL" which also sounded good for me. I'm a back end dev. I was able to make a Python script (I'm using VS Code) that imported the library and ran the commands, but I saw no output. The docs showed output from tips.head()
, but I saw no output from that line when I ran my script.
Googling my issue, I found this: https://stackoverflow.com/questions/51580863/output-of-pandas-head-function-is-not-displayed
The accepted answer suggested running print(df.head())
instead of just df.head()
. That worked for me. After reading that Stack Overflow page, I remembered that people also often use pandas with notebooks, so I went back to the docs page and looked at it closely. At that point, I noticed the In [5]:
near the steps. I think people who've never used notebooks at all before might not even recognize this.
Suggested fix for documentation
- Remove the requirement to run the getting started code in a notebook, or
- Include alternative line for those running the script as is without viz tools like notebooks, or
- Add warning at top of getting started guide that readers are required to setup a notebook and run the code in it for their experience to match that of the guide