slip.6
1.....
<!DOCTYPE html>
<html>
<head>
<title>Layout Example</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
header {
background-color: #2a6ebd;
color: white;
padding: 20px;
text-align: center;
}
nav {
background-color: #36b5b0;
width: 25%;
float: left;
padding: 20px;
height: 400px;
box-sizing: border-box;
}
section {
background-color: #f3a41c;
width: 75%;
float: left;
padding: 20px;
height: 400px;
box-sizing: border-box;
}
footer {
clear: both;
background-color: #e33c3c;
color: white;
text-align: center;
padding: 15px;
}
</style>
</head>
<body>
<header>
<h1>Header</h1>
</header>
<nav>
<h2>Menu</h2>
</nav>
<section>
<p>
Write one pragragh of 5 lines
</p>
</section>
<footer>
<p>Footer</p>
</footer>
</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