-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support numeric data using locale-specific numeric separators and formating.
- Loading branch information
Showing
8 changed files
with
91 additions
and
12 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
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,18 @@ | ||
# Copyright (c) 2024 CloudZero, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Direct all questions to support@cloudzero.com | ||
from pathlib import Path | ||
|
||
from uca.common.files import load_data_files | ||
|
||
|
||
def test_load_data_files(): | ||
""" | ||
Test to load data files | ||
""" | ||
test_data_file = str((Path(__file__).parent / "../data/test_data.csv").resolve()) | ||
data_files = load_data_files(test_data_file, "TEXT") | ||
assert len(data_files) == 13 | ||
|
||
data_files = load_data_files(test_data_file, "CSV") | ||
assert len(data_files) == 12 |
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,13 @@ | ||
timestamp,unit_id,unit_value | ||
2021-08-01,Sunbank,37 | ||
2021-08-01,SoftwareCorp,17 | ||
2021-08-01,"Parts, Inc.",140 | ||
2021-08-01,Transport Co.,25 | ||
2021-08-01,"WeShipit, Inc.",124 | ||
2021-08-01,CapitalTwo,90 | ||
2021-08-02,Sunbank,45 | ||
2021-08-02,SoftwareCorp,"1,234.03" | ||
2021-08-02,"Parts, Inc.",12 | ||
2021-08-02,Transport Co.,89 | ||
2021-08-02,"WeShipit, Inc.",77 | ||
2021-08-02,CapitalTwo,934 |
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