#numpy

Alexandre B A Villares 🐍villares@ciberlandia.pt
2026-03-17

if you never played with #Numpy, it can be rather magical, it is kind of not normal #Python, it is something else.

The two most impressive ideas for me are:

From time to time I revisit Rougier's "From Python to Numpy"
labri.fr/perso/nrougier/from-p

2026-03-14

Что реально нужно знать в Python начинающему аналитику

Многие думают, что достаточно пройти курс по Pandas и ты готов к работе, а потом сталкиваются с реальными задачами и не знают что им делать. В статье разобрала по полочкам: – Что реально нужно знать про Python до того, как лезть в датафреймы – 20+ методов Pandas, которые покроют 80% задач – Какие графики и чем рисовать – Библиотеки для статистики и SQL – минимум, но необходимый Без воды, списками и примерами.

habr.com/ru/articles/1010316/

#карьера_в_it #карьера_аналитика #карьера_аналитика_данных #карьера_аналитиков #обучение_анализу #обучение_аналитик_данных #обучение_аналитике #советы_новичкам #pandas #numpy

Ashwin V. Mohananashwinvis@fediscience.org
2026-03-11

Even a decade back, when #PyPy was showing promising performance benefits of 4x speedup or even more, it was of little benefit to an increasingly compiled scientific stack. PyPy was only useful in a Pure Python environment, so I am not surprised with its removal from #NumPy

github.com/numpy/numpy/issues/

However I am genuinely surprised to hear that PyPy as a project is "no longer under active development, and has not released a Python3.12 version." I think the emphasis is on the latter, that it takes time for PyPy to catch up to Python 3.12 and due to NEP29 they should only support Python 3.12+.

numpy.org/neps/nep-0029-deprec

I haven't seen an official announcement of PyPy being discontinued and would refuse to believe that until I see one.

2026-03-11

5 фатальных ошибок при работе с Pandas (и как их избежать)

Pandas — швейцарский нож дата-аналитика. Пара строк, и данные отфильтрованы, сгруппированы и готовы к работе. Но часто бывает так: изящный скрипт, летавший на тестовом датасете, на реальных объемах превращается в тормозящего монстра, который воет кулером и выплевывает MemoryError. Почему так происходит? Главная беда — наши привычки из чистого Python. Циклы for, apply и построчная обработка идут вразрез с архитектурой Pandas, построенной поверх массивов NumPy. В этой статье разберем 5 самых частых (и фатальных) ошибок при работе с DataFrame. Посмотрим, как безобидные решения убивают производительность и память, и научимся переписывать код так, чтобы всё работало быстро, элегантно и «по-пандасовски». Спойлер: циклов не будет.

habr.com/ru/articles/1008910/

#python #pandas #анализ_данных #data_science #оптимизация_кода #антипаттерны #векторизация #numpy #memoryerror

Pier-Luc Braultplbrault@fosstodon.org
2026-03-08
2026-03-06

PyEditor for ESA SNAP, available since v1.5 of EOMasters Toolbox Pro, allows to use packages like #numpy on Linux and do data anaylsis directly in SNAP.
On Windows this will still take a little while. The maintainers of #GraalPython are working on this.
#earthobservation #remotesensing #graalvm

Alexandre B A Villaresvillares@pynews.com.br
2026-03-02

Calculation of #Conway's #GameOfLife was already very fast with #Numpy, but drawing was slow (squares and text...) now this is *so* fast... with vectorized `py5.points()` getting arrays of points to draw as squares with `py5.stroke_cap(py5.PROJECT)`. Check it out!
Find the sketch-a-day archives and tip jar at: abav.lugaralgum.com/sketch-a-d
Code for this sketch at: github.com/villares/sketch-a-d #Processing #Python #py5 #CreativeCoding

A rendering of Conway's Game of life with square cells colored by the number of neighbors. Also, spaces where a cell will be born get a blue round dot (3 neighbors color) and the cells that are going to die (less than 2 or more than 3 neighbours) get a black round dot in the center.
Alexandre B A Villaresvillares@pynews.com.br
2026-03-02

Yet another Conway's Game of Life with #numpy. Find the sketch-a-day archives and tip jar at: abav.lugaralgum.com/sketch-a-d
Code for this sketch at: github.com/villares/sketch-a-d

[I updated the image]
#CellularAutomata #GoL #Conway #Processing #Python #py5 #CreativeCoding

A colored pattern of squares with numbers inside on a black background, some dark "3" near colored squares. The patterns are Conway's Game of Life and the numbers are the count of neighbors of each cell.  A "glider" pattern is visible on the top right corner.
Alexandre B A Villaresvillares@pynews.com.br
2026-02-28

Preparing a bit for teaching my #CellularAutomata class a few times this semester.#WIP #ConwaysGameOfLife with #numpy
Find the sketch-a-day archives and tip jar at: abav.lugaralgum.com/sketch-a-d
Code for this sketch at: github.com/villares/sketch-a-d #Processing #Python #py5 #CreativeCoding

a grid of small squares representing a matrix of random "cells" for a cellular automata simulation. The black squares are "dead"/off and the coloured ones are "alive"/on. Inside them a number shows how many neighbours are alive.
Alexandre B A Villaresvillares@pynews.com.br
2026-02-28
a repeating abstract organic-like pattern with bright colors, blue background, yellow blobs and translucent red blobs.
2026-02-26

How do you type-annotate a 1-dimensional array with a custom dtype in numpy?

Specifically, what goes in place of the question marks here:

numpy.ndarray[tuple[int], ???]

#Python #numpy

2026-02-17

Трансформер своими руками: с нуля до Numpy реализации и обучения

В этой статье пойдет речь об одной из самых сложных и интересных архитектур — трансформере, лежащей в основе современных моделей от OpenAI и Google DeepMind. И это не научпоп для обывателя с наивным уровнем объяснения, а полноценный учебный материал, который поможет вам понять работу трансформера на фундаментальном уровне без черных ящиков типа TensorFlow и Pytorch. А для того чтобы лучше вникнуть, давайте напишем настоящий мини-трансформер на процедурном Python и обучим его! Данный материал можно изучать в разных режимах: * Как объяснение архитектуры для общего представления; * Как полноценный гайд с чтением кода и самостоятельной практикой; * Как основу для собственных экспериментов. Вы сами можете выбрать тот режим, который нужен для ваших целей на данный момент. Наш трансформер будет довольно простым: со статическим графом и одноблочными энкодером и декодером. Сам код написан в парадигме процедурного программирования (за исключением некоторых модулей) и может быть прочитан на любом уровне и без знания ООП. И все же это будет полноценный обучаемый трансформер с мультиголовым вниманием, батчами данных, параллельным вычислением и множеством параметров. Для закрепления материала, выполните Домашнее задание, которое ждет вас в конце статьи. Напишем трансформер!

habr.com/ru/articles/982268/

#transformer #encoder #decoder #numpy #с_нуля #deeplearning #attention #backpropagation #нейросети #pytorch

2026-02-09

Optimización del precio de la entrada de cine
Simulación de 10000 cines

#python
assert dataclass #numpy structured array

2026-02-07

Falling in love with #marimo.
Scattering of roots of perturbed quadratic equations.
Made with #python #numpy #matplotlib and @marimo_io

Notebook and code: static.marimo.app/static/roots

Blosc Development TeamBlosc2@fosstodon.org
2026-02-05

Just took the new engine in Python-Blosc2 4.0 for a spin, and the performance results are quite awesome. Processing a 400 MB array:

🔹 NumPy baseline: 146 ms
🔹 Blosc2 (on NumPy arrays): 73.1 ms (2x faster)
🔹 Blosc2 (on native Blosc2 arrays): 15.1 ms (**9.6x faster!**) 🤯

The best part? It fully supports NumPy's array and ufunc interfaces. High performance with zero friction! 🏎️💨

More info: ironarray.io/blog/miniexpr-pow

#Python #DataScience #NumPy #HighPerformanceComputing #Blosc2 #OpenSource

2026-02-04

Все об устройстве Q65 с примерами на Python (часть 3)

Q65 — цифровой протокол, разработанный Джо Тейлором (K1JT) и его командой в 2021 году для проведения минимальных связей в условиях сложных трасс прохождения радиосигнала. В предыдущих частях цикла были рассмотрены структура протокола, алгоритмы формирования сигнала, механизмы компенсации эффекта Доплера, синхронизация и детектирование сигнала в условиях быстрых затуханий сигналов. В этой части статьи рассматривается механизм декодирования данных Q-ary Repeat Accumulation кодов протокола Q65. Статья может быть интересна радиолюбителям, людям, интересующимся темой цифровой обработки сигналов и кодами коррекции ошибок.

habr.com/ru/articles/992436/

#ham #hamradio #python #numpy #fec #q65

Future Codingshaharyarranjah1
2026-01-28

This Python snippet shows how to draw a chessboard using NumPy and Matplotlib. The code creates an 8x8 matrix with alternating 0 and 1 values to represent black and white squares, then visualizes it using imshow. It demonstrates how simple array operations can generate patterns and how Matplotlib can convert data into visual output, which is useful for data visualization, simulations, and computer vision experiments.

Franziska Köppe | madikomadiko@mastodon.green
2026-01-26

Hello scientists of the world, #Python needs you! ;-) Vote for your favorite programming language and the #ITWorldCup now. And spread the word. Every vote counts (and every minute, too). Thank you!

hachyderm.io/@itworldcup/11596

#DataViz #DataVisualisation #Panda #NumPy #mathematics #Mathematik #GeoPlotLib #MatPlotLib #SeaBorn #SciComm #DataVizualisation #Visualisierung #Science #scientists

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst