cryptodatapy 0.2.27__py3-none-any.whl → 0.2.28__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,8 @@
1
1
  import pandas as pd
2
+ from typing import List
2
3
 
3
- from tests.test_impute import filtered_data
4
4
 
5
-
6
- def compute_reference_price(List: pd.DataFrame,
5
+ def compute_reference_price(dfs: List[pd.DataFrame],
7
6
  method: str = 'median',
8
7
  trim_pct: float = 0.25,
9
8
  ) -> pd.DataFrame:
@@ -12,7 +11,7 @@ def compute_reference_price(List: pd.DataFrame,
12
11
 
13
12
  Parameters
14
13
  ----------
15
- List: pd.DataFrame
14
+ dfs: pd.DataFrame
16
15
  List of dataframes containing price data.
17
16
  method: str, optional
18
17
  Method to compute the consensus price. Options are 'median' or 'trimmed_mean'.
@@ -29,7 +28,7 @@ def compute_reference_price(List: pd.DataFrame,
29
28
  raise ValueError("The input list is empty.")
30
29
 
31
30
  # Concatenate all dataframes in the list
32
- stacked_df = pd.concat(List)
31
+ stacked_df = pd.concat(dfs)
33
32
 
34
33
  # Compute consensus price based on the specified method
35
34
  if method == 'median':
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cryptodatapy
3
- Version: 0.2.27
3
+ Version: 0.2.28
4
4
  Summary: Cryptoasset data library
5
5
  License: Apache-2.0
6
6
  Author: Systamental
@@ -57,8 +57,8 @@ cryptodatapy/transform/wrangle.py,sha256=cQOkPoiOmQtC7d2G15jMbMJSbinMmLYxM6Or7Ff
57
57
  cryptodatapy/util/__init__.py,sha256=zSQ2HU2QIXzCuptJjknmrClwtQKCvIj4aNysZljIgrU,116
58
58
  cryptodatapy/util/datacatalog.py,sha256=qCCX6srXvaAbVAKuA0M2y5IK_2OEx5xA3yRahDZlC-g,13157
59
59
  cryptodatapy/util/datacredentials.py,sha256=BnoQlUchbP0vfXqXRuhCOOsHyUTMuH5T4RAKBbHzMyo,3140
60
- cryptodatapy/util/utils.py,sha256=CqxFkaNNuOwA8RLz-G11bZ0jn3rcZfwEvKBkU0GDUDA,4164
61
- cryptodatapy-0.2.27.dist-info/LICENSE,sha256=sw4oVq8bDjT3uMtaFebQ-xeIVP4H-bXldTs9q-Jjeks,11344
62
- cryptodatapy-0.2.27.dist-info/METADATA,sha256=MVJocFDsV4nFpRTr7Tr_Pg7ydNIiFT6D_Anu6oZmfZ4,6473
63
- cryptodatapy-0.2.27.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
64
- cryptodatapy-0.2.27.dist-info/RECORD,,
60
+ cryptodatapy/util/utils.py,sha256=zXDPnqLNaeWVGgUDVG70q-WcaIuxbAVbYeinKchdlL4,4146
61
+ cryptodatapy-0.2.28.dist-info/LICENSE,sha256=sw4oVq8bDjT3uMtaFebQ-xeIVP4H-bXldTs9q-Jjeks,11344
62
+ cryptodatapy-0.2.28.dist-info/METADATA,sha256=or2VOUWh0yvQGwJ-v3NPPWqNJpWR1Di7tDiSQ-5rTIo,6473
63
+ cryptodatapy-0.2.28.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
64
+ cryptodatapy-0.2.28.dist-info/RECORD,,