-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Italy Air Quality and release v0.4;
- Loading branch information
Showing
7 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Italy Air Quality | ||
|
||
## Citing this dataset 🤗 | ||
|
||
`Vito,Saverio. (2016). Air Quality. UCI Machine Learning Repository. https://doi.org/10.24432/C59K5F` | ||
|
||
or | ||
|
||
```bibtex | ||
@misc{vito2016air, | ||
author = {Vito,Saverio}, | ||
title = {{Air Quality}}, | ||
year = {2016}, | ||
howpublished = {UCI Machine Learning Repository}, | ||
note = {{DOI}: https://doi.org/10.24432/C59K5F} | ||
} | ||
``` |
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
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
""" | ||
Scripts related to dataset Italy Air Quality. | ||
For more information please refer to: | ||
https://github.com/WenjieDu/TSDB/tree/main/dataset_profiles/italy_air_quality | ||
""" | ||
|
||
# Created by Wenjie Du <[email protected]> | ||
# License: BSD-3-Clause | ||
|
||
import os | ||
|
||
import pandas as pd | ||
|
||
|
||
def load_italy_air_quality(local_path): | ||
"""Load dataset Italy Air Quality. | ||
Parameters | ||
---------- | ||
local_path : str, | ||
The local path of dir saving the raw data of Beijing Multi-site Air Quality. | ||
Returns | ||
------- | ||
data : dict | ||
A dictionary contains X: | ||
X : pandas.DataFrame | ||
The time-series data of Beijing Multi-site Air Quality. | ||
""" | ||
file_path = os.path.join(local_path, "AirQualityUCI.csv") | ||
df = pd.read_csv(file_path, sep=";", decimal=",") | ||
# remove empty columns | ||
df.drop(columns=["Unnamed: 15", "Unnamed: 16"], inplace=True) | ||
|
||
data = { | ||
"X": df, | ||
} | ||
return data |