slip.5
1.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.c
ss">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></scrip
t>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js">
</script>
</head>
<body>
<div class="jumbotron text-center">
<h1>My First Bootstrap Page</h1>
<p>Resize this responsive page to see the effect!</p>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">
<h3>Personal Information</h3>
<p>Add your personal information..</p>
<p>...</p>
</div>
<div class="col-sm-4">
<h3>Educational Information</h3>
<p>Add your educational information....</p>
<p>...</p>
</div>
<div class="col-sm-4">
<h3>Job Profile</h3>
<p>Add your job profile information.....</p>
<p>...</p>
</div>
</div>
</div>
</body>
</html>
2
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import numpy as np
import matplotlib.pyplot as plt
rand_arr = np.random.randint(0, 100, 50)
print("\n*** ____Random numbers ____***\n\n", rand_arr)
x = rand_arr
y = x * 0.5
print("\n\nLine Chart….\n\n")
plt.plot(x, '-', color='tomato', linewidth=3)
plt.xlabel("X - Axis")
plt.ylabel("Y - Axis")
plt.title("Line Chart")
plt.minorticks_on()
plt.grid(visible=True, color='silver', which='minor', alpha=0.8, ls='-', lw=1)
plt.show()
print("\n\nScatter Plot….\n\n")
plt.scatter(x, y, marker='d', c='gold', linewidth=2)
plt.xlabel("X - Axis")
plt.ylabel("Y - Axis")
plt.title("Scatter Plot")
plt.grid(visible=True, color='silver', which='major', alpha=0.8, ls='-', lw=1)
plt.show()
print("\n\nHistogram….\n\n")
plt.hist(x, color='teal')
plt.xlabel("X - Axis")
plt.ylabel("Y - Axis")
plt.title("Histogram")
plt.grid(visible=True, color='silver', which='major', alpha=0.8, ls='-', lw=1)
plt.show()
print("\nBoxPlot….\n\n")
plt.boxplot(x)
plt.xlabel("X - Axis")
plt.ylabel("Y - Axis")
plt.title("Box Plot")
plt.minorticks_on()
plt.grid(visible=True, color='silver', which='minor', alpha=0.8, ls='-', lw=1)
plt.show()
df = pd.read_csv('data.csv')
print("Shape of DataFrame is : ", df.shape)
print("\n Number of rows & Columns : ", df.size)
print("\n\n Data types for DataFrame is : \n\n", df.dtypes)
print("\n\n Feature Names in DataFrame : \n\n", df.columns)
print("\n\n Description of a Data : \n\n", df.describe())
df
Comments
Post a Comment