Data Analytics
Dive into the world of Data Analytics β uncover insights, explore trends, and master data-driven decision making. Admin: @HusseinSheikho || @Hussein_Sheikho
Show moreπ Analytical overview of Telegram channel Data Analytics
Channel Data Analytics (@dataanalyticsx) in the English language segment is an active participant. Currently, the community unites 28 942 subscribers, ranking 4 736 in the Technologies & Applications category and 22 805 in the Russia region.
π Audience metrics and dynamics
Since its creation on Π½Π΅Π²ΡΠ΄ΠΎΠΌΠΎ, the project has demonstrated rapid growth, gathering an audience of 28 942 subscribers.
According to the latest data from 11 June, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by 493 over the last 30 days and by 20 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 3.86%. Within the first 24 hours after publication, content typically collects 0.99% reactions from the total number of subscribers.
- Post reach: On average, each post receives 1 118 views. Within the first day, a publication typically gains 287 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 2.
- Thematic interests: Content is focused on key topics such as sellerflash, buybox, buyer, chaos, effortless.
π Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
βDive into the world of Data Analytics β uncover insights, explore trends, and master data-driven decision making.
Admin: @HusseinSheikho || @Hussein_Sheikhoβ
Thanks to the high frequency of updates (latest data received on 12 June, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.
import pandas as pd
s = pd.Series([10, 20, 30], index=[1, 2, 3])
print(s[1])
A. 10
B. 20
C. 30
D. KeyError
Correct answer: A.
2. What will this code output?
import pandas as pd
s = pd.Series([10, 20, 30])
print(s.iloc[1])
A. 10
B. 20
C. 30
D. IndexError
Correct answer: B.
3. What does this print?
import pandas as pd
df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
print(df.shape)
A. (4,)
B. (2, 2)
C. (1, 4)
D. (2,)
Correct answer: B.
4. What is returned by this expression?
df["a"]
A. DataFrame
B. Series
C. list
D. ndarray
Correct answer: B.
5. What does this code output?
import pandas as pd
df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
print(df[["a"]].shape)
A. (2,)
B. (1, 2)
C. (2, 1)
D. (4, 1)
Correct answer: C.
6. What is the result?
import pandas as pd
s = pd.Series([1, 2, 3])
print(s > 1)
A. [False, True, True]
B. Series of booleans
C. ndarray of booleans
D. True
Correct answer: B.
7. What does this code produce?
import pandas as pd
s = pd.Series([1, 2, 3])
print(s[s > 1])
A. Series [2, 3]
B. Series [False, True, True]
C. [2, 3]
D. IndexError
Correct answer: A.
8. What is the output?
import pandas as pd
df = pd.DataFrame({"a": [1, 2], "b": [3, 4]})
print(df.iloc[0, 1])
A. 1
B. 2
C. 3
D. 4
Correct answer: C.
9. What does this select?
df.loc[:, "a"]
A. First row
B. First column as Series
C. First column as DataFrame
D. Entire DataFrame
Correct answer: B.
10. What will this code output?
import pandas as pd
df = pd.DataFrame({"a": [1, 2, 3]})
print(len(df))
A. 1
B. 2
C. 3
D. Error
Correct answer: C.
11. What is returned?
df.values
A. Series
B. DataFrame
C. NumPy ndarray
D. list
Correct answer: C.
12. What does this code output?
import pandas as pd
df = pd.DataFrame({"a": [1, 2, 3]})
print(df.index)
A. [0, 1, 2]
B. list
C. RangeIndex
D. ndarray
Correct answer: C.
13. What is the result?
df.columns
A. list
B. Series
C. Index
D. dict
Correct answer: C.
14. What does this return?
df.dtypes
A. dict
B. Series
C. DataFrame
D. ndarray
Correct answer: B.
15. What is printed?
import pandas as pd
s = pd.Series([1, None, 3])
print(s.isna().sum())
A. 0
B. 1
C. 2
D. 3
Correct answer: B.
16. What does this code output?
import pandas as pd
s = pd.Series([1, None, 3])
print(s.dropna().values)
A. [1, None, 3]
B. [None]
C. [1, 3]
D. Error
Correct answer: C.
17. What does this expression return?
df.head(1)
A. First column
B. First row as Series
C. First row as DataFrame
D. Entire DataFrame
Correct answer: C.
18. What is the output?
import pandas as pd
df = pd.DataFrame({"a": [1, 2, 3]})
print(df.tail(1)["a"].iloc[0])
A. 1
B. 2
C. 3
D. Error
Correct answer: C.
19. What happens here?
df["c"] = df["a"] * 2
A. Raises KeyError
B. Modifies column a
C. Adds new column c
D. No effect
Correct answer: C.
20. What does this code output?
import pandas as pd
df = pd.DataFrame({"a": [1, 2, 3]})
print(df.sum().iloc[0])
A. 1
B. 3
C. 6
D. Error
Correct answer: C.
21. What does df.mean() return?
A. scalar
B. Series
C. DataFrame
D. ndarray
Correct answer: B.
22. What is the result?
df["a"].dtype
A. int
B. numpy.int64
C. object
D. float
Correct answer: B.
23. What does this code do?
df = df.rename(columns={"a": "x"})
A. Renames index
B. Renames column a to x
C. Deletes column a
D. Copies DataFrame only
Correct answer: B.
24. What does this expression return?
df.loc[df["a"] > 1, :]
A. Boolean Series
B. Filtered DataFrame
C. Filtered Series
D. Error
Correct answer: B.
25. What is printed?
import pandas as pd
df = pd.DataFrame({"a": [1, 2, 3]})
print(df.empty)
A. True
B. False
C. None
D. Error
Correct answer: B.
https://t.me/DataAnalyticsX π±# Select products in 'Electronics' or 'Audio' categories
print("Products in Electronics or Audio:")
print(df_pl.filter(pl.col('category').is_in(['Electronics', 'Audio'])))
# Select products with price between 50 and 200 (inclusive)
print("\nProducts with price between 50 and 200:")
print(df_pl.filter(pl.col('price').is_between(50, 200)))
#### SQL
-- Select products in 'Electronics' or 'Audio' categories
SELECT *
FROM products
WHERE category IN ('Electronics', 'Audio');
-- Select products with price between 50 and 200 (inclusive)
SELECT *
FROM products
WHERE price BETWEEN 50 AND 200;# Create 'price_level' based on price and 'stock_status'
def get_price_level(price):
if price > 200:
return 'High'
elif price > 50:
return 'Medium'
else:
return 'Low'
def get_stock_status(stock):
if stock == 0:
return 'Out of Stock'
elif stock < 50:
return 'Low Stock'
else:
return 'In Stock'
result_pd = df_pd.assign(
price_level=df_pd['price'].apply(get_price_level),
stock_status=df_pd['stock_quantity'].apply(get_stock_status)
)[['product_name', 'price', 'price_level', 'stock_quantity', 'stock_status']]
print(result_pd)
#### polars
# Create 'price_level' based on price and 'stock_status'
result_pl = df_pl.select(
'product_name',
'price',
pl.when(pl.col('price') > 200).then(pl.lit('High'))
.when(pl.col('price') > 50).then(pl.lit('Medium'))
.otherwise(pl.lit('Low'))
.alias('price_level'),
'stock_quantity',
pl.when(pl.col('stock_quantity') == 0).then(pl.lit('Out of Stock'))
.when(pl.col('stock_quantity') < 50).then(pl.lit('Low Stock'))
.otherwise(pl.lit('In Stock'))
.alias('stock_status')
)
print(result_pl)
#### SQL
-- Create price_level and stock_status based on conditions
SELECT
product_name,
price,
CASE
WHEN price > 200 THEN 'High'
WHEN price > 50 THEN 'Medium'
ELSE 'Low'
END AS price_level,
stock_quantity,
CASE
WHEN stock_quantity = 0 THEN 'Out of Stock'
WHEN stock_quantity < 50 THEN 'Low Stock'
ELSE 'In Stock'
END AS stock_status
FROM products;
---
String Transformations in Select
#### pandas
# Select product_name in uppercase and first 3 characters of category
result_pd = df_pd.assign(
product_name_upper=df_pd['product_name'].str.upper(),
category_prefix=df_pd['category'].str.slice(0, 3)
)[['product_name', 'product_name_upper', 'category', 'category_prefix']]
print(result_pd)
#### polars
# Select product_name in uppercase and first 3 characters of category
result_pl = df_pl.select(
'product_name',
pl.col('product_name').str.to_uppercase().alias('product_name_upper'),
'category',
pl.col('category').str.slice(0, 3).alias('category_prefix')
)
print(result_pl)
#### SQL
-- Select product_name in uppercase and first 3 characters of category
SELECT
product_name,
UPPER(product_name) AS product_name_upper,
category,
SUBSTRING(category, 1, 3) AS category_prefix -- Or LEFT(category, 3) in some SQL dialects
FROM products;
---
Selecting with Advanced Filtering (IN, BETWEEN equivalents)
#### pandas
# Select products in 'Electronics' or 'Audio' categories
print("Products in Electronics or Audio:")
print(df_pd[df_pd['category'].isin(['Electronics', 'Audio'])])
# Select products with price between 50 and 200 (inclusive)
print("\nProducts with price between 50 and 200:")
print(df_pd[df_pd['price'].between(50, 200)])
#### polarsimport pandas as pd
data = {
'product_id': [101, 102, 103, 104, 105, 106, 107, 108],
'product_name': ['Laptop', 'Mouse', 'Keyboard', 'Monitor', 'Webcam', 'Microphone', 'Speakers', 'Charger'],
'category': ['Electronics', 'Electronics', 'Electronics', 'Electronics', 'Peripherals', 'Peripherals', 'Audio', 'Accessories'],
'price': [1200.00, 25.00, 75.00, 300.00, 50.00, 80.00, 150.00, 15.00],
'stock_quantity': [50, 200, 150, 70, 100, 60, 40, 0]
}
df_pd = pd.DataFrame(data)
#### polars
import polars as pl
data = {
'product_id': [101, 102, 103, 104, 105, 106, 107, 108],
'product_name': ['Laptop', 'Mouse', 'Keyboard', 'Monitor', 'Webcam', 'Microphone', 'Speakers', 'Charger'],
'category': ['Electronics', 'Electronics', 'Electronics', 'Electronics', 'Peripherals', 'Peripherals', 'Audio', 'Accessories'],
'price': [1200.00, 25.00, 75.00, 300.00, 50.00, 80.00, 150.00, 15.00],
'stock_quantity': [50, 200, 150, 70, 100, 60, 40, 0]
}
df_pl = pl.DataFrame(data)
#### SQL (Conceptual Table Structure and Data)
-- CREATE TABLE products (
-- product_id INT PRIMARY KEY,
-- product_name VARCHAR(255),
-- category VARCHAR(255),
-- price DECIMAL(10, 2),
-- stock_quantity INT
-- );
-- INSERT INTO products VALUES
-- (101, 'Laptop', 'Electronics', 1200.00, 50),
-- (102, 'Mouse', 'Electronics', 25.00, 200),
-- (103, 'Keyboard', 'Electronics', 75.00, 150),
-- (104, 'Monitor', 'Electronics', 300.00, 70),
-- (105, 'Webcam', 'Peripherals', 50.00, 100),
-- (106, 'Microphone', 'Peripherals', 80.00, 60),
-- (107, 'Speakers', 'Audio', 150.00, 40),
-- (108, 'Charger', 'Accessories', 15.00, 0);
---
Creating New Columns with Expressions (SELECT col1, col2 + col3 AS new_col)
#### pandas
# Select 'product_name', 'price', and calculate 'total_inventory_value'
result_pd = df_pd.assign(
total_inventory_value=df_pd['price'] * df_pd['stock_quantity'],
discounted_price=df_pd['price'] * 0.9
)[['product_name', 'price', 'total_inventory_value', 'discounted_price']]
print(result_pd)
#### polars
# Select 'product_name', 'price', and calculate 'total_inventory_value'
result_pl = df_pl.select(
'product_name',
'price',
(pl.col('price') * pl.col('stock_quantity')).alias('total_inventory_value'),
(pl.col('price') * 0.9).alias('discounted_price')
)
print(result_pl)
#### SQL
-- Select product_name, price, and calculate total_inventory_value and discounted_price
SELECT
product_name,
price,
price * stock_quantity AS total_inventory_value,
price * 0.9 AS discounted_price
FROM products;
---
Conditional Column Creation (CASE WHEN equivalent)
#### pandas
Available now! Telegram Research 2025 β the year's key insights 
