generated from Ramil-cyber/Data-Engineering-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ramil Mammadov
committed
Sep 22, 2024
1 parent
cacb8bc
commit dc0d633
Showing
7 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ psutil==6.0.0 | |
pylint==3.2.7 | ||
pytest==8.3.3 | ||
ruff==0.6.6 | ||
setuptools==73.0.1 | ||
setuptools==73.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
# from src.main import | ||
from src.main import calculate_iqr, save_to_md | ||
from src.lib import get_data | ||
import os | ||
|
||
remote_path = remote_path = ( | ||
"https://raw.githubusercontent.com/Ramil-cyber/Ramil-Individual-Project-1/refs/heads/main/data/shanghai_ranking_2024.csv" | ||
) | ||
|
||
|
||
def test_main(): | ||
df = get_data(remote_path) | ||
top_100_df = df.iloc[:100, :] | ||
print(int(calculate_iqr(top_100_df, column="Award"))) == 26 | ||
|
||
save_to_md(df) | ||
assert os.path.exists("summary_statistics.md") |