Data Science & Machine Learning
Join this channel to learn data science, artificial intelligence and machine learning with funny quizzes, interesting projects and amazing resources for free For collaborations: @love_data
Ko'proq ko'rsatish๐ Telegram kanali Data Science & Machine Learning analitikasi
Data Science & Machine Learning (@datasciencefun) Ingliz til segmentidagi kanali faol ishtirokchi. Hozirda hamjamiyat 75 645 obunachidan iborat bo'lib, Taสผlim toifasida 2 114-o'rinni va Hindiston mintaqasida 4 359-o'rinni egallagan.
๐ Auditoriya koโrsatkichlari va dinamika
ะฝะตะฒัะดะพะผะพ sanasidan buyon loyiha tez oโsib, 75 645 obunachiga ega boโldi.
11 Iyun, 2026 dagi oxirgi maโlumotlarga koโra kanal barqaror faollikka ega. Oxirgi 30 kunda obunachilar soni 911 ga, soโnggi 24 soatda esa 29 ga oโzgardi va umumiy qamrov yuqori darajada qolmoqda.
- Tasdiqlash holati: Tasdiqlanmagan
- Jalb etish (ER): Auditoriya oโrtacha 3.63% darajada jalb etiladi. Nashrdan keyingi dastlabki 24 soatda kontent odatda umumiy obunachilar sonining 1.36% ini tashkil etuvchi reaksiyalarni toโplaydi.
- Post qamrovi: Har bir post oโrtacha 2 747 marta koโriladi; birinchi sutkada odatda 1 032 ta koโrish yigโiladi.
- Reaksiyalar va oโzaro taโsir: Auditoriya faol: har bir postga oโrtacha 5 ta reaksiya keladi.
- Tematik yoโnalishlar: Kontent learning, accuracy, distribution, panda, dataset kabi asosiy mavzularga jamlangan.
๐ Tavsif va kontent siyosati
Muallif resursni shaxsiy fikrni ifoda etish maydoni sifatida taโriflaydi:
โJoin this channel to learn data science, artificial intelligence and machine learning with funny quizzes, interesting projects and amazing resources for free
For collaborations: @love_dataโ
Yuqori yangilanish chastotasi (oxirgi maโlumot 12 Iyun, 2026 da olingan) sababli kanal doimo dolzarb va katta qamrovli boโlib qoladi. Analitika auditoriya kontent bilan faol hamkorlik qilishini, uni Taสผlim toifasidagi muhim taโsir nuqtasiga aylantirishini koโrsatadi.
import numpy as np
๐น 2. Creating a NumPy Array
From a List
import numpy as np
arr = np.array([1, 2, 3, 4])
print(arr)
Output:
[1 2 3 4]๐น 3. Check Array Type
print(type(arr))
Output:
<class 'numpy.ndarray'>
๐น 4. NumPy Array Operations
Addition:
import numpy as np
arr = np.array([1, 2, 3])
print(arr + 2)
Output:
[3 4 5]Multiplication:
print(arr * 2)
Output:
[2 4 6]๐น 5. NumPy Built-in Functions
arr = np.array([10, 20, 30, 40])
print(arr.sum())
print(arr.mean())
print(arr.max())
print(arr.min())
Output:
100 25.0 40 10๐น 6. NumPy Array Shape
arr = np.array([[1, 2, 3], [4, 5, 6]])
print(arr.shape)
Output:
(2, 3)Meaning: 2 rows and 3 columns. ๐น 7. Why NumPy is Important? NumPy is the foundation of data science libraries: โ Pandas โ Scikit-Learn โ TensorFlow โ PyTorch All these libraries use NumPy internally. ๐ฏ Today's Goal โ Install NumPy โ Create arrays โ Perform math operations โ Understand array shape Double Tap โฅ๏ธ For More
print(10 / 0)
Output: ZeroDivisionError
This will crash the program.
๐น 2. Using tryโexcept
We use tryโexcept to handle errors.
Syntax:
try:
# code that may cause error
except:
# code to handle error
Example:
try:
x = 10 / 0
except:
print("Error occurred")
Output: Error occurred
๐น 3. Handling Specific Exceptions
try:
num = int("abc")
except ValueError:
print("Invalid number")
โ Handles only ValueError.
๐น 4. Using else
else runs if no error occurs.
try:
x = 10 / 2
except:
print("Error")
else:
print("No error")
Output: No error
๐น 5. Using finally
finally always executes.
try:
file = open("data.txt")
except:
print("File not found")
finally:
print("Execution completed")
๐น 6. Common Python Exceptions
โข ZeroDivisionError: Division by zero
โข ValueError: Invalid value
โข TypeError: Wrong data type
โข FileNotFoundError: File does not exist
๐ฏ Today's Goal
โ Understand exceptions
โ Use tryโexcept
โ Handle specific errors
โ Use else and finally
๐ Exception handling is widely used in data pipelines and production code.
Double Tap โฅ๏ธ For Moreopen("filename", "mode")
Example: file = open("data.txt", "r")
๐ "r" โ Read mode
๐น 2. File Modes
- "r" โ Read file
- "w" โ Write file (overwrites existing content)
- "a" โ Append file (adds to existing content)
- "r+" โ Read and write
๐น 3. Reading a File
- Read Entire File: file.read()
- Read One Line: file.readline()
- Read All Lines: file.readlines()
๐น 4. Writing to a File
file = open("data.txt", "w")
file.write("Hello Data Science")
file.close()
โ "w" will overwrite existing content.
๐น 5. Append to File
file = open("data.txt", "a")
file.write("\nNew line added")
file.close()
โ Adds content without deleting old data.
๐น 6. Best Practice (Very Important โญ)
Use with statement.
with open("data.txt", "r") as file:
content = file.read()
print(content)
โ Automatically closes the file.
๐น 7. Why File Handling is Important?
Used for:
โ Reading datasets
โ Saving results
โ Logging machine learning models
โ Data preprocessing
๐ฏ Todayโs Goal
โ Understand file modes
โ Read files
โ Write files
โ Use with open()
๐ File handling is used heavily when working with CSV datasets in data science.
Double Tap โฅ๏ธ For More
Endi mavjud! Telegram Tadqiqoti 2025 โ yilning asosiy insaytlari 
