Top Tweets for #NumPy
核对两份 NumPy 数组,别只写 `(a == b).all()`。
如果形状也必须一致,用 `np.array_equal(a, b)`。普通 `==` 可能先做广播,让形状不同的数组也比较通过。缺测值应当在同一位置视作相等时,给实数数组加 `equal_nan=True`。
来源:https://t.co/8Fq6jIFcFw
#NumPy
NumPy 算出一列 NaN,先别把警告关掉。
从 NumPy 导入 errstate,把可疑计算放进 with errstate(divide='raise', invalid='raise'):。除零或无效运算会当场报错,离开这段就恢复原设置。
这能定位出错的运算,不会替你处理输入里已有的 NaN。
来源:https://t.co/2JEVwPDtGv #NumPy
从样本编号里排除坏样本,结果怎么连重复测量也没了?
NumPy 的 setdiff1d 默认返回排序去重后的差集。若要剔除坏样本、保留其余记录的顺序和重复次数,对一维数组用 a[~np.isin(a, bad)]。
比如 [3,1,3,2] 去掉 1:差集是 [2,3],筛记录则是 [3,3,2]。
来源:https://t.co/j3ScLywMTw #NumPy
103 条样本分给 8 个任务,最后几条不必手动补。
NumPy 的 array_split(x, 8) 会给出 7 块 13 条、1 块 12 条,不会丢余数。普通 split 在不能整除时报错。
如果各块返回准确率,汇总时要按样本数加权,别直接平均 8 个百分比。
来源:https://t.co/BZ8BI4SIxS #NumPy
每个权重都装得进 uint8,加权直方图的总数却可能装不下。
NumPy 的 histogram 会沿用 weights 的类型累加。同一箱里 100 个权重 3,应该加到 300,已超过 uint8 的上限 255。
先把整数权重转成够宽的类型(例如 int64),再算直方图。
来源:https://t.co/8pFH0o4R4s #NumPy
Day 25 | Is this a map? | #30DayMapChallenge | Berlin?
Berlin's 542 neighbourhoods, each sized by its population, 3.92 million residents in total. Data: Amt für Statistik Berlin-Brandenburg and Geoportal Berlin
Tools: #Python #GeoPandas #Shapely #NumPy #matplotlib #Positron

💰 Fees: ₹708 (Arduino) | ₹354 (NumPy), including GST.
Register now!
#NPTELPlus #Arduino #FreeRTOS #MachineLearning #NumPy

The platform now has 55 notes, including 25 new additions, making it easier to learn and experiment with Data Science interactively.
🔗 Try it out: https://t.co/WmtJvt5bnr
Free and open to everyone!
#Python #DataScience #Pandas #NumPy #LearningInPublic #OpenSource
Day 36 of #MachineLearning: Today I am starting a deep dive into EDA (Exploratory Data Analysis) to understand the complete #ML workflow
#learninginpublic #100daysofcode #NumPy #Pandas
Day 7 | 10 Minute Map | #30DayMapChallenge
A quick elevation map of Germany made in 10 minutes, plus a second image showing the polished final version.
Data: #Copernicus DEM GLO-90 (AWS Open Data), Natural Earth boundaries
Tools: #Python #rasterio #geopandas #NumPy #matplotlib



In this session, we covered creating arrays, rows and columns, indexing, slicing, broadcasting, boolean indexing, aggregate functions, universal functions and the differences in outputs between using NumPy arrays and regular Python lists.
Still learning & growing. 🌱
#NumPy

"Financial Theory with Python: A Gentle Introduction" at https://t.co/iXnTS9R1qB by @dyjh
————
#Finance #DataScience #DataScientist #Numpy #PANDAS #Mathematics

From an old project of mine, now ported to marimo: the classic Littlewood fractal. What happens if you sample the ±1 coefficients of Littlewood polynomials from a 1D Ising model at different temperatures?
#builtWithMarimo
Made with #python #numpy #numba #matplotlib
A classical symmetric Field–Golubitsky attractor.
#builtWithMarimo
Made with #python #numpy #numba #matplotlib

Today’s learning: reshaping solar data with NumPy and calculating average noon irradiance. ☀️📊
Getting better at turning raw data into meaningful insights. 🐍💻 #Python #NumPy #DataAnalytics #kastrolearns

Today’s NumPy practice: generating sensor data, transforming matrices, and exploring array memory, strides, and shapes. 📊🐍
Learning by doing. Growing with every line of code.
#numpy #DataAnalytics #kastrolearns

Today’s NumPy practice: generating sensor data, transforming matrices, and exploring array memory, strides, and shapes. 📊🐍
Learning by doing. Growing with every line of code.
#numpy #DataAnalytics #kastrolearns

Built a complete Python procurement audit workflow today 🐍📊 Parsed raw CSV logs, calculated tax & order totals, aggregated department spending, and flagged non-compliant vendor terms. Real-world data skills in action🚀 #DataAnalytics #Python #kastrolearns

Day 3: I learned NumPy operations 🔢
Mean, Median, Variance, Std (basic stats)
Dot product
Array slicing (2D and 3D)
#Python #NumPy #AIJourney

SW Puerto Rico seismic sequence [Almost 7 yrs update]: still active.
Data: @USGS_Quakes @redsismica @uprm
Processing/plots: #python @matplotlib #numpy #pandas #geopandas
![Monteviside's tweet photo. SW Puerto Rico seismic sequence [Almost 7 yrs update]: still active.
Data: @USGS_Quakes @redsismica @uprm
Processing/plots: #python @matplotlib #numpy #pandas #geopandas https://t.co/S86SQLvSHm](https://pbs.twimg.com/media/HSwWVBPW4AA-ts-.jpg)
A classic Monte Carlo simulation, it takes me right back to my student days.
16 cars of equal length park at random along a street 20 cars long.
#builtWithMarimo #python #numpy #matplotlib
Thanks Claude Code for drawing nice cars in matplotlib 😀
Two maps from ℂ to ℂ, a few numbers, and a lot of iterations. #builtWithMarimo #python #numpy #matplotlib


Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.2M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers





















![Monteviside's tweet photo. SW Puerto Rico seismic sequence [Almost 7 yrs update]: still active.
Data: @USGS_Quakes @redsismica @uprm
Processing/plots: #python @matplotlib #numpy #pandas #geopandas https://t.co/S86SQLvSHm](https://pbs.twimg.com/media/HSwWVArW0AAh0ow.jpg)