DataTalksClub / DataTalksClub/faq

[FAQ]

Open Beginner friendly
#402 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

faq-proposal
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.