Strings

Mon 30 June 2025
s = 'hello world'
print(len(s))
11
print(s.upper())
HELLO WORLD
print(s.lower())
hello world
print(s.capitalize())
Hello world
print(s.title())
Hello World
print(s.swapcase())
HELLO WORLD
print(s.startswith('hello'))
True
print(s.endswith('world'))
True
print(s.find('o'))
4
print(s.rfind …

Category: basics

Read More

Student Analysis

Mon 30 June 2025
import pandas as pd
from io import StringIO

data = """Name,Math,Physics,Chemistry
Sara,88,92,85
Ali,76,81,79
Afia,95,90,96
John,55,60,58
Lina,66,74,70"""

df = pd.read_csv(StringIO(data))
df

Category: pandas-work

Read More

Time Series Analysisbasics

Mon 30 June 2025
import pandas as pd
import numpy as np
rng = pd.date_range('2023-01-01', periods=10, freq='D')
df = pd.DataFrame({'date': rng, 'value': np.random.randn(10)})
df.set_index('date').rolling(window=3).mean()

Category: pandas-work

Read More

Unemploymentanalysis

Mon 30 June 2025
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
data = pd.read_csv(r"C:\Users\HP\Desktop\OIB-SIP\unemploymentanalysis\unemployment\Unemployment in India.csv")
print("Data Shape:", data.shape)
Data Shape: (768, 7)
print("\nFirst 5 Rows:\n", data.head())
First 5 Rows:
            Region         Date …

Category: pandas-work

Read More

Web Python Css Js

Mon 30 June 2025
<script>
for (let i = 0; i < 1; i++) {
    console.log('Loop 0 - iteration', i);
}
</script>
  Cell In[1], line 1
    <script>
    ^
SyntaxError: invalid syntax
<script>
function greet1() {
    console.log('Hello from function 1');
}
greet1();
</script>
<script>
let arr2 = [2, 3, 4];
console.log('Array 2:', arr2);
</script>
  Cell In[2 …

Category: basics

Read More

Youtube Stats Analysis

Mon 30 June 2025
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
df = pd.read_csv(r'C:\datasets\youtube_stats.csv')
df
Title Views Likes Comments Duration
0 Study Vlog - 1 254300 …

Category: pandas-work

Read More
Page 6 of 6

« Prev