Skip to content

Commit

Permalink
Merge pull request #5 from UBC-MDS/check-csv
Browse files Browse the repository at this point in the history
Add function for checking csv
  • Loading branch information
MCatherine1994 authored Jan 9, 2025
2 parents 81d6802 + 79c0207 commit 7251338
Show file tree
Hide file tree
Showing 7 changed files with 260 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ A python package to support exploratory data analysis!
## Contributors
Catherine Meng, Jessie Zhang, Zheng He

## Functions
- **`check_csv`**
Check if the given file is a CSV file by its extension.
- **`missing_value_summary`**
- **`get_summary_statistics`**

## Installation

```bash
Expand All @@ -13,7 +19,6 @@ $ pip install pyeda

## Usage

- TODO

## Contributing

Expand Down
238 changes: 238 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"

[tool.poetry.group.dev.dependencies]
pytest = "^8.3.4"
pytest-cov = "^6.0.0"

[tool.semantic_release]
version_toml = [
"pyproject.toml:tool.poetry.version",
Expand Down
11 changes: 11 additions & 0 deletions src/pyeda/check_csv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def check_csv(file_path):
"""
Check if the given file is a CSV file by its extension.
Args:
file_path (str): Path to the file.
Returns:
bool: True if the file is a CSV file, False otherwise.
"""
pass
Empty file removed src/pyeda/pyeda.py
Empty file.
1 change: 1 addition & 0 deletions tests/test_check_csv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from pyeda import check_csv
1 change: 0 additions & 1 deletion tests/test_pyeda.py

This file was deleted.

0 comments on commit 7251338

Please sign in to comment.