cryptodatapy 0.2.23__py3-none-any.whl → 0.2.24__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.
- cryptodatapy/transform/filter.py +2 -2
- {cryptodatapy-0.2.23.dist-info → cryptodatapy-0.2.24.dist-info}/METADATA +1 -1
- {cryptodatapy-0.2.23.dist-info → cryptodatapy-0.2.24.dist-info}/RECORD +5 -5
- {cryptodatapy-0.2.23.dist-info → cryptodatapy-0.2.24.dist-info}/LICENSE +0 -0
- {cryptodatapy-0.2.23.dist-info → cryptodatapy-0.2.24.dist-info}/WHEEL +0 -0
cryptodatapy/transform/filter.py
CHANGED
@@ -159,12 +159,12 @@ class Filter:
|
|
159
159
|
and fields (cols).
|
160
160
|
"""
|
161
161
|
# drop tickers with nobs < ts_obs
|
162
|
-
obs = self.df.groupby(level=1).count().
|
162
|
+
obs = self.df.groupby(level=1).count().min(axis=1)
|
163
163
|
drop_tickers_list = obs[obs < ts_obs].index.to_list()
|
164
164
|
self.filtered_df = self.df.drop(drop_tickers_list, level=1, axis=0)
|
165
165
|
|
166
166
|
# drop tickers with nobs < cs_obs
|
167
|
-
obs = self.filtered_df.groupby(level=0).count().
|
167
|
+
obs = self.filtered_df.groupby(level=0).count().min(axis=1)
|
168
168
|
idx_start = obs[obs > cs_obs].index[0]
|
169
169
|
self.filtered_df = self.filtered_df.loc[idx_start:]
|
170
170
|
|
@@ -49,14 +49,14 @@ cryptodatapy/extract/web/web.py,sha256=R1xEnHE1McxSWxp4vrTfgh9gW6FF6XDlp0gmp2NmW
|
|
49
49
|
cryptodatapy/transform/__init__.py,sha256=Spb5cGJ3V_o8hgSWOSrF8J_vsSZpFk0uzW7RpkgfbFE,131
|
50
50
|
cryptodatapy/transform/clean.py,sha256=C9VypQOjdJ987TcD-qAHh7qYaoJBotvp3cWTr3ttSGM,12807
|
51
51
|
cryptodatapy/transform/convertparams.py,sha256=2tXYjITMardNkf4WXPYmgvnLXTej9XdSE6JfdU4_wfk,42724
|
52
|
-
cryptodatapy/transform/filter.py,sha256=
|
52
|
+
cryptodatapy/transform/filter.py,sha256=37MjUKUay3dwwyn47rnNOU51X_OFzmWq_N9buALzq9k,9058
|
53
53
|
cryptodatapy/transform/impute.py,sha256=_0-SX5nnPrYgJYT-HKwBGNkmWXRMy9-C2oeU6VqkQp0,5537
|
54
54
|
cryptodatapy/transform/od.py,sha256=mI1oojMbfmdO9ZewL3AvMxoXuMM05Ut2oGm_ogMf2XU,30386
|
55
55
|
cryptodatapy/transform/wrangle.py,sha256=M3l3Fyc45LoUSA2lIfe27anT_4OPZESPBfWf_rI6CxA,42358
|
56
56
|
cryptodatapy/util/__init__.py,sha256=zSQ2HU2QIXzCuptJjknmrClwtQKCvIj4aNysZljIgrU,116
|
57
57
|
cryptodatapy/util/datacatalog.py,sha256=qCCX6srXvaAbVAKuA0M2y5IK_2OEx5xA3yRahDZlC-g,13157
|
58
58
|
cryptodatapy/util/datacredentials.py,sha256=CC23ocTrxr6EEqM-oreLgz5rHEDX7EmZS7DYTgoIg8Q,2752
|
59
|
-
cryptodatapy-0.2.
|
60
|
-
cryptodatapy-0.2.
|
61
|
-
cryptodatapy-0.2.
|
62
|
-
cryptodatapy-0.2.
|
59
|
+
cryptodatapy-0.2.24.dist-info/LICENSE,sha256=sw4oVq8bDjT3uMtaFebQ-xeIVP4H-bXldTs9q-Jjeks,11344
|
60
|
+
cryptodatapy-0.2.24.dist-info/METADATA,sha256=oJwf8et7mc-NXEopCU2D9nXR1EH_nPEee8-y1YHzgTU,6428
|
61
|
+
cryptodatapy-0.2.24.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
62
|
+
cryptodatapy-0.2.24.dist-info/RECORD,,
|
File without changes
|
File without changes
|