Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
DM-Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
DM-Project
Commits
6f099ed0
You need to sign in or sign up before continuing.
Commit
6f099ed0
authored
Oct 29, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use helpers
parent
ac58b5ff
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
104 additions
and
86 deletions
+104
-86
.gitignore
.gitignore
+1
-0
README.md
README.md
+3
-1
helpers.py
helpers.py
+16
-0
hw1.ipynb
hw1.ipynb
+84
-85
No files found.
.gitignore
View file @
6f099ed0
__pycache__/constants.cpython-311.pyc
data/bread_basket_preprocessed.csv
__pycache__/helpers.cpython-311.pyc
README.md
View file @
6f099ed0
...
...
@@ -12,4 +12,6 @@
> - **FP Growth**
> 1. **Performance comparison between the two algorithms**
> ***This project contains a python file `constants.ipynb` containing some fixed values used in `hw.ipynb`, refered as `CONSTANTS` class***
> ***This project contains a python file `constants.ipynb` containing some fixed values used in `hw1.ipynb`, refered as `CONSTANTS` class***
> ***This project contains a python file `helpers.ipynb` containing some helper functions used in `hw1.ipynb`, refered as `HELPERS` class***
\ No newline at end of file
helpers.py
0 → 100644
View file @
6f099ed0
import
pandas
as
pd
class
HELPERS
:
def
read_dataset_from_csv
(
path
):
try
:
data
=
pd
.
read_csv
(
path
)
return
data
except
FileNotFoundError
:
print
(
f
"Error: The file at {path} was not found."
)
except
pd
.
errors
.
EmptyDataError
:
print
(
f
"Error: The file at {path} is empty."
)
except
pd
.
errors
.
ParserError
:
print
(
f
"Error: The file at {path} could not be parsed."
)
except
Exception
as
e
:
print
(
f
"An unexpected error occurred: {e}"
)
\ No newline at end of file
hw1.ipynb
View file @
6f099ed0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment