DataTalksClub / DataTalksClub/faq
[FAQ]
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7
- Forks
- 19
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 9
Description
Course
machine-learning-zoomcamp
Question
Why am I getting TypeError: 'list' object is not callable when creating a NumPy array?
Answer
This usually happens when np.array was accidentally overwritten by a list in an earlier Jupyter cell. Since the Jupyter kernel retains previous variable assignments, simply editing or deleting the problematic cell may not fix it.
The quickest solution is to restart the Jupyter kernel (Kernel → Restart), then run:
import numpy as np
y = np.array([1100, 1300, 800, 900, 1000, 1100, 1200])
After restarting, np.array() will point back to NumPy's original function.
Checklist
- I have searched existing FAQs and this question is not already answered
- The answer provides accurate, helpful information
- I have included any relevant code examples or links
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the FAQ content for the machine-learning-zoomcamp course and reviewing nearby entries for formatting and placement. Add this question, answer, and NumPy example, then verify the FAQ renders correctly and matches the repository’s existing structure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter, numpy, python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 90/100