🔧 AI Nachrichten How I’m using Codex and ChatGPT on my Mac(01.09.2026 um 00:00 Uhr)
🕵️ SicherheitslückenProFTPD mod_sql post-authentication SQLi RCE(06.09.2026 um 18:21 Uhr)
🕵️ Sicherheitslücken[remote] CVE-2026-42167 - ProFTPD mod_sql post-authentication SQLi - RCE(25.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] C-MOR 6.0104 - Cross-Site Scripting (XSS)(31.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] CubeCart 6.7.4 - Stored XSS(31.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] CubeCart 6.7.4 - Cross-Site Scripting(31.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] Langflow 1.8.4 - Path Traversal to Remote Code Execution(31.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] miniOrange 5.4.3 - Unauthenticated Auth Bypass(01.09.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] Wolf CMS 0.8.3.1 - RCE v(01.09.2026 um 02:00 Uhr)
🔧 AI Nachrichten How I’m using Codex and ChatGPT on my Mac(01.09.2026 um 00:00 Uhr)
🕵️ SicherheitslückenProFTPD mod_sql post-authentication SQLi RCE(06.09.2026 um 18:21 Uhr)
🕵️ Sicherheitslücken[remote] CVE-2026-42167 - ProFTPD mod_sql post-authentication SQLi - RCE(25.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] C-MOR 6.0104 - Cross-Site Scripting (XSS)(31.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] CubeCart 6.7.4 - Stored XSS(31.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] CubeCart 6.7.4 - Cross-Site Scripting(31.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] Langflow 1.8.4 - Path Traversal to Remote Code Execution(31.08.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] miniOrange 5.4.3 - Unauthenticated Auth Bypass(01.09.2026 um 02:00 Uhr)
🕵️ Sicherheitslücken[webapps] Wolf CMS 0.8.3.1 - RCE v(01.09.2026 um 02:00 Uhr)

🔧 Programmierung 🕛 vor 3 Monaten 3 Min Lesezeit
0

What is NumPy? The Backbone of Data Science in Python

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

If you want to do data science, machine learning, or AI in Python — you will use NumPy constantly. Every major library from pandas to TensorFlow is built on top of it. Here is what it is and why it matters.






What is NumPy?



NumPy stands for Numerical Python. It is a library that gives Python the ability to work with large arrays of numbers extremely fast.



Python lists can store numbers. But they are slow for mathematical operations. NumPy arrays do the same thing 10 to 100 times faster.



This matters when you are working with thousands of rows of data or training a machine learning model on millions of examples.






Your first NumPy array






CODE
import numpy as np

sales = np.array([45000, 52000, 38000, 61000, 55000])

print(np.mean(sales)) # average
print(np.sum(sales)) # total
print(np.max(sales)) # highest
print(np.std(sales)) # how spread out the numbers are






Five lines. You get the average, total, maximum, and standard deviation of any list of numbers instantly. No loops. No manual calculation.






Why it is faster than Python lists



When you multiply a Python list by 2, Python loops through each item one by one. When you multiply a NumPy array by 2, it does all items simultaneously using optimised C code under the hood.




CODE
import numpy as np
import time

data = list(range(1_000_000))
np_data = np.array(data)

# Python loop
start = time.time()
result = [x * 2 for x in data]
print(f"Python loop: {time.time() - start:.4f} seconds")

# NumPy
start = time.time()
result = np_data * 2
print(f"NumPy: {time.time() - start:.4f} seconds")






On my machine NumPy is 50 times faster for this operation. At a million items. That gap only grows as data gets bigger.






The operations that make it powerful






Filter without loops






CODE
sales = np.array([45000, 52000, 38000, 61000, 55000])

# Get only months above 50,000
high_months = sales[sales > 50000]
print(high_months) # [52000 61000 55000]









Apply conditions across all values






CODE
avg = np.mean(sales)
performance = np.where(sales >= avg, "Good", "Below average")
print(performance)
# ['Good' 'Good' 'Below average' 'Good' 'Good']









Work with 2D data like a spreadsheet






CODE
# 6 months of data: revenue, orders, avg order value
monthly = np.array([
[45000, 120, 375],
[52000, 138, 377],
[38000, 102, 373],
])

print(monthly[:, 0].sum()) # total revenue across all months
print(monthly[:, 1].mean()) # average orders per month






The [:, 0] means "all rows, column 0". This is how you slice 2D data without writing nested loops.






Why every data scientist needs to know this



pandas DataFrames are built on NumPy arrays. When you call df['Revenue'].mean() in pandas, pandas calls NumPy internally. When you train a machine learning model in scikit-learn, it converts your data into NumPy arrays before processing.



Understanding NumPy means you understand what is happening under the hood in every data science tool you will ever use.






Install and get started






CODE
pip install numpy






Then open Google Colab and try this right now:




CODE
import numpy as np

data = np.array([10, 20, 30, 40, 50])
print("Mean:", np.mean(data))
print("Doubled:", data * 2)
print("Above 25:", data[data > 25])






Three lines and you have filtered, transformed, and analysed data without writing a single loop.






The one-line summary



NumPy makes Python fast enough for real data science — it is the foundation everything else is built on.






Written by Raaga Priya Madhan — CSE student, Bangalore. I write about Python, data science, and ML. See my code on

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
2 Quellen
Hands-On with ChatGPT Work’s New Cloud Browser Feature
1 Quelle
iPhone Duo design & MagSafe problems on the AppleInsider Podcast
1 Quelle
Evernote 11.30.6
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten What is NumPy? The Backbone of Data Science in Python

Thematisch verwandte Begriffe: What, NumPy, Backbone, Data · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...