-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (88 loc) · 4.91 KB
/
Copy pathindex.html
File metadata and controls
98 lines (88 loc) · 4.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Data Preprocessing Application</title>
<!-- Bootstrap CSS via CDN -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
</head>
<body>
<!-- Hero Section with Logo -->
<div class="container mt-4">
<div class="hero shadow-lg text-center">
<!-- Add the logo image here -->
<img src="{{ url_for('static', filename='logo.jpg') }}" alt="App Logo" class="mb-4" style="width: 150px;">
<h1>Data Preprocessing Application</h1>
<p>Upload your dataset and select charts for visualization.</p>
</div>
<!-- Upload Section -->
<div class="upload-section">
<h2>Choose your Dataset (CSV or Excel)</h2>
<form action="/upload" method="post" enctype="multipart/form-data" class="mt-4">
<div class="mb-3">
<input type="file" class="form-control" id="file" name="file" accept=".csv,.xlsx" required>
</div>
<h2>Preprocessing Options</h2>
<div class="preprocess-options mb-4">
<div class="form-check">
<input class="form-check-input" type="checkbox" name="preprocess" value="remove_na" id="remove_na" checked>
<label class="form-check-label" for="remove_na">Remove Missing Values</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="preprocess" value="remove_duplicates" id="remove_duplicates">
<label class="form-check-label" for="remove_duplicates">Remove Duplicates</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="preprocess" value="remove_outliers" id="remove_outliers">
<label class="form-check-label" for="remove_outliers">Remove Outliers (IQR)</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="preprocess" value="normalize" id="normalize">
<label class="form-check-label" for="normalize">Normalize Numerical Columns</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="preprocess" value="encode_categoricals" id="encode_categoricals">
<label class="form-check-label" for="encode_categoricals">Encode Categorical Columns (One-Hot)</label>
</div>
</div>
<h2>Select Charts to Visualize</h2>
<div class="chart-options">
<div class="form-check">
<input class="form-check-input" type="checkbox" name="charts" value="histogram" id="histogram">
<label class="form-check-label" for="histogram">Histogram</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="charts" value="boxplot" id="boxplot">
<label class="form-check-label" for="boxplot">Box Plot</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="charts" value="scatter" id="scatter">
<label class="form-check-label" for="scatter">Scatter Plot</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="charts" value="line" id="line">
<label class="form-check-label" for="line">Line Chart</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="charts" value="bar" id="bar">
<label class="form-check-label" for="bar">Bar Chart</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="charts" value="pie" id="pie">
<label class="form-check-label" for="pie">Pie Chart</label>
</div>
</div>
<button type="submit" class="upload-button mt-4">Upload and Generate Charts</button>
</form>
</div>
</div>
<!-- Footer -->
<footer>
<p>© 2024 Data Cleaner. All rights reserved.</p>
</footer>
<!-- Bootstrap JS and dependencies via CDN -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>