slip.2
<!DOCTYPE html>
<html>
<head>
<title>Pune City</title>
<marquee style="background-color:yellow;padding:20px;font-size:20px;">
Pune city is best for education.
</marquee>
</head>
<body style="background-color:pink;">
<h1 style="color:blue;font-size:large;">Pune City</h1>
<ul>
<li style="font-size:17px;">Landmarks:</li>
<ul>
<li style="color:red;font-size:11px;">Kothrud</li>
<li style="color:orange;font-size:12px;">Morya Gosawi</li>
<li style="color:green;font-size:13px;">Dagdusheth</li>
<li style="color:aqua;font-size:14px;">Alandi</li>
</ul>
</ul>
<img src="file:///C:/Users/dpo77/OneDrive/Desktop/webTechnology/HTML-%20DEMO-PGM/images/rose.jpg" height="300" width="500">
</body>
</html>
2
import pandas as pd
import matplotlib.pyplot as plt
data = pd.read_csv('Data.csv')
df = pd.DataFrame(data)
print('\n******** ____Without Modified Dataset_____********\n\n', df)
df['Salary'] = df['Salary'].fillna(df['Salary'].mean())
df['Age'] = df['Age'].fillna(df['Age'].mean())
print('\n******** ____ Modified Dataset_____********\n\n', df)
df.plot(x="Country", y="Salary", c="lightseagreen", linewidth=2, label='..$')
plt.title('Line Plot of Country Name And Salary')
plt.xlabel('------ Country Name ------')
plt.ylabel('------ Salary ------')
plt.grid(visible=True, color='black', alpha=0.3)
plt.show()
data1 = pd.read_csv('weight-height.csv')
df1 = pd.DataFrame(data)
print('\n First 10 rows of Given Dataset is : \n')
print(df1.head(10))
print('\n Last10 rows of Given Dataset is : \n')
print(df1.tail(10))
print('\n Random 10 rows of Given Dataset is : \n')
print(df1.sample(10))
Comments
Post a Comment