The correlation you estimate from a data sample can have substantial sampling bias even with what might seem intuitively like sufficient data. We use this as an exercise to compare vanilla python with the numpy and pyplot libraries.
Use the attached notebook as a template.