@amneumarkt · Post #721 · 16.01.2026 г., 06:26
#visualization This is actually smart. https://medium.com/@redhotchilipaper/using-trapezoids-to-visualize-matrix-multiplication-with-applications-to-data-science-e1cff40de098
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #418 · 9 мар.
Оператор pipe позволяет писать более компактный код, реализуя логику объединения данных (Union). Важно помнить, что его поведение зависит от контекста. Побитовые операции (логическое OR) result = 5 | 3 # 5 (0101) | 3 (0011) = 7 (0111) Самое главное - не путать с оператором or, это другое! Объединение множеств set_a = {1, 2, 3} set_b = {3, 4, 5} set_c = set_a | set_b # {1, 2, 3, 4, 5} set_c |= {5, 6} # {1, 2, 3, 4, 5, 6} Слияние словарей dict_1 = {"a": 1, "b": 2} dict_2 = {"b": 3, "c": 4} merged = dict_1 | dict_2 # {'a': 1, 'b': 3, 'c': 4} merged |= {"d": 5} # {'a': 1, 'b': 3, 'c': 4, 'd': 5} Аннотации типов, заменяет Union def process_data(value: int | str) -> None: print(value) Допустимо использовать в isinstance или issubclass isinstance(3, int | float) # True Паттерн-матчинг status_code = 404 match status_code: case 200 | 201 | 204: print("OK") case 400 | 404 | 500: print("ERROR") Для использования в своих классах требуется переопределить метод __or__ Так же нашел библиотеку pipe которая добавляет еще много возможностей. Рекомендую ознакомиться ;) #basic
Hashtags
Пребарај: #visualization
@amneumarkt · Post #721 · 16.01.2026 г., 06:26
#visualization This is actually smart. https://medium.com/@redhotchilipaper/using-trapezoids-to-visualize-matrix-multiplication-with-applications-to-data-science-e1cff40de098
Hashtags
@amneumarkt · Post #713 · 19.12.2025 г., 17:44
#visualization Broken Chart: discover 9 visualization alternatives – Dr Dominic Royé https://dominicroye.github.io/blog/2025-12-14-broken-charts/
Hashtags
@amneumarkt · Post #649 · 05.12.2024 г., 21:01
#visualization introduction | Deneb https://deneb-viz.github.io/
Hashtags
@amneumarkt · Post #646 · 29.11.2024 г., 04:09
#visualization Plotly will supports polars natively in v6 . https://github.com/plotly/plotly.py/releases/tag/v6.0.0rc0
Hashtags
@amneumarkt · Post #643 · 24.11.2024 г., 15:57
#visualization Dashboard Deutschland https://www.dashboard-deutschland.de/
Hashtags
@amneumarkt · Post #619 · 04.09.2024 г., 17:35
#visualization The Data Viz Tools We Used In 2023 https://data-viz-tools-2023.netlify.app
Hashtags
@amneumarkt · Post #614 · 18.08.2024 г., 07:47
#visualization There was a joke saying that every tree in Germany has been touched by some human. There's even a research on the topic of how dense the buildings are in Germany. Based on this research, the farthest distance that is away from a building is only 6.3km. I just can't believe this. I feel something is wrong but I don't have data to validate. Behnisch, Martin, Martin Schorcht, Steffen Kriewald, and Diego Rybski. 2019. “Settlement Percolation: A Study of Building Connectivity and Poles of Inaccessibility.” Landscape and Urban Planning 191 (103631): 103631.
Hashtags
@amneumarkt · Post #592 · 27.06.2024 г., 21:56
#visualization Beautiful. There are details that the author designed quite well. How long are the nights? https://plotparade.com/gallery_sunrise.html
Hashtags
@amneumarkt · Post #566 · 29.03.2024 г., 13:55
#visualization Some comments in this post are just so funny. https://www.reddit.com/r/MapPorn/s/HsLvLGzLb6
Hashtags
@amneumarkt · Post #518 · 20.12.2023 г., 08:35
#visualization Source: https://www.statista.com/statistics/520952/netherlands-number-of-live-born-children-by-marital-status-of-the-mother/
Hashtags
@amneumarkt · Post #514 · 01.12.2023 г., 15:12
#visualization Finland vs UK, and Turkiye/Turkey is such a nice example of data quality issues. https://www.reddit.com/r/MapPorn/s/QYGauVmzOP
Hashtags
@amneumarkt · Post #505 · 09.11.2023 г., 19:13
#visualization https://www.reddit.com/r/dataisbeautiful/s/V05LnvCzqC
Hashtags