ChatCrawlersearch across public Telegram Open the app
P

Python

сообщение · 2025-09-28 20:11 UTC
N
hi sth baffled me lately import matplotlib.pyplot as plt import numpy as np years = np.array([1900 + x for x in range(126)]) degree = np.array([34]) change_degree = np.array([y for y in np.random.default_rng().uniform(-0.2, 0.3, 126)]) for change in change_degree: next_index = degree[-1] + change np.append(degree, next_index) degree = degree[1:] plt.plot(years, degree) the code above doesnt work because the dimensions do not match, however the fix is: # Wrong: np.append(degree, new_value) # Right: degree = np.append(degree, new_value) but how? I'm new to stuff I could use some conceptual help with this

Вся лента · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog