@repo_science · Post #4041 · 24.02.2024 г., 12:06
#R 🤩 R for Data Science (2e) 📖Book ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
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
Пребарај: #r
@repo_science · Post #4041 · 24.02.2024 г., 12:06
#R 🤩 R for Data Science (2e) 📖Book ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
Hashtags
@repo_science · Post #4110 · 28.04.2024 г., 00:41
#R#Python 🖥 Python and R for the Modern Data Scientist ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
@repo_science · Post #3578 · 11.09.2023 г., 12:32
#Python#R 🐍 Practical Data Science Cookbook - Second Edition 🔗book ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
@repo_science · Post #4182 · 09.08.2024 г., 14:23
#book#R Aprendiendo Bioestadística con R Aplicado a las ciencias biológicas y naturales. ✍️Oscar Ramírez Alán 📆2019-06-20 ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
@repo_science · Post #4057 · 08.03.2024 г., 13:28
#book#R 📓 Welcome to Supervised Machine Learning for Text Analysis in R 🔗book ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
@repo_science · Post #4000 · 27.01.2024 г., 03:41
#R#book 📓 Deep R Programming ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
@repo_science · Post #3459 · 20.07.2023 г., 14:29
#R#book 😎 Data Wrangling with R (2023) ✍️Gustavo R Santos 📆2023 🔗Link ----- Main channel: @repo_science Coupons: @freecoupons_reposcience -----
@repo_science · Post #3248 · 31.05.2023 г., 03:56
#book#R 📚 An Introduction to R (2023) 🔗Link ----- Main channel:@repo_science Coupons: @freecoupons_reposcience -----
@galgamer_channel · Post #932 · 19.07.2023 г., 05:09
诱骗少女回家的方法 galgame频道汉化 讲述了某大学生暑假在公园吃零食,偶遇18岁小O生,用零食与动画片诱拐回家,最终让小O生放下动画片与零食,离不开大学生的擎天柱的故事 注意,需要安装字体 萝莉体 https://t.me/Galgamer_channel/932?comment=740819 下崽链接 https://t.me/Galgamer_channel/932?comment=740818 #萝莉#R-18
@repo_science · Post #4217 · 02.10.2024 г., 01:56
#book#python#r ⚽️ Football Analytics with Python & R. ✍️Eric A. Eager; Richard A. Erickson ----- Main channel:@repo_science Coupons:@freecoupons_reposcience -----
@mikutondeiko · Post #7975 · 05.04.2026 г., 16:23
Уют #miku#music#r-906
@libertaeragione · Post #4231 · 13.08.2024 г., 16:19
#USA Donald #Trump (#R|ECR) ha pubblicato il programma dei Repubblicani per il 2024. @OsservatorioEsteri