virgo-modules 0.0.76__py3-none-any.whl → 0.0.77__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.

Potentially problematic release.


This version of virgo-modules might be problematic. Click here for more details.

@@ -2734,11 +2734,11 @@ class signal_analyser_object:
2734
2734
  )
2735
2735
  )
2736
2736
  df = df[~df.signal_type.isna()]
2737
- # df['Date'] = df.index
2738
2737
  df['lag_Date'] = df['Date'].shift(1)
2738
+ df['lag_signal_type'] = df['signal_type'].shift(1)
2739
2739
  df['span'] = (pd.to_datetime(df['Date']) - pd.to_datetime(df['lag_Date'])).dt.days - 1
2740
- df['break'] = np.where(df['span'] > 3, 1, 0)
2741
- df['break'] = np.where(df['span'].isna(), 1, df['break'])
2740
+ df['break'] = np.where((df['span'] > 3) & (df['lag_signal_type'] == df['signal_type']), 1, 0)
2741
+ df['break'] = np.where((df['lag_signal_type'] != df['signal_type']), 1, df['break'])
2742
2742
 
2743
2743
  df['chain_id'] = df.sort_values(['Date']).groupby(['break']).cumcount() + 1
2744
2744
  df['chain_id'] = np.where(df['break'] == 1, df['chain_id'], np.nan )
@@ -2861,11 +2861,11 @@ class signal_analyser_object:
2861
2861
  )
2862
2862
  )
2863
2863
  df2 = df2[~df2.signal_type.isna()]
2864
- # df2['Date_'] = df2.index
2865
2864
  df2['lag_Date'] = df2['Date'].shift(1)
2865
+ df2['lag_signal_type'] = df2['signal_type'].shift(1)
2866
2866
  df2['span'] = (pd.to_datetime(df2['Date']) - pd.to_datetime(df2['lag_Date'])).dt.days - 1
2867
- df2['break'] = np.where(df2['span'] > 3, 1, 0)
2868
- df2['break'] = np.where(df2['span'].isna(), 1, df2['break'])
2867
+ df2['break'] = np.where((df2['span'] > 3) & (df2['lag_signal_type'] == df2['signal_type']), 1, 0)
2868
+ df2['break'] = np.where((df2['lag_signal_type'] != df2['signal_type']), 1, df2['break'])
2869
2869
 
2870
2870
  df2['chain_id'] = df2.sort_values(['Date']).groupby(['break']).cumcount() + 1
2871
2871
  df2['chain_id'] = np.where(df2['break'] == 1, df2['chain_id'], np.nan )
@@ -1,36 +1,37 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo-modules
3
- Version: 0.0.76
3
+ Version: 0.0.77
4
4
  Summary: data processing and statistical modeling using stock market data
5
5
  Home-page: https://github.com/miguelmayhem92/virgo_module
6
6
  Author: Miguel Mayhuire
7
7
  Author-email: miguelmayhem92@gmail.com
8
8
  License: MIT
9
+ Platform: UNKNOWN
9
10
  Classifier: License :: OSI Approved :: MIT License
10
11
  Classifier: Programming Language :: Python :: 3.9
11
12
  Classifier: Operating System :: OS Independent
12
13
  Requires-Python: >=3.9, <3.10
13
14
  Description-Content-Type: text/markdown
14
15
  License-File: LICENSE
15
- Requires-Dist: feature-engine ==1.6.1
16
- Requires-Dist: matplotlib ==3.6.3
17
- Requires-Dist: mlflow ==2.1.1
18
- Requires-Dist: numpy ==1.23.5
19
- Requires-Dist: optuna ==3.1.0
20
- Requires-Dist: pandas ==1.5.3
21
- Requires-Dist: plotly ==5.15.0
22
- Requires-Dist: rsa ==4.9
23
- Requires-Dist: scikit-learn ==1.2.1
24
- Requires-Dist: scipy ==1.10.0
25
- Requires-Dist: seaborn ==0.12.2
26
- Requires-Dist: starlette ==0.22.0
27
- Requires-Dist: statsmodels ==0.13.5
28
- Requires-Dist: ta ==0.10.2
29
- Requires-Dist: yfinance ==0.2.9
30
- Requires-Dist: hmmlearn ==0.3.0
16
+ Requires-Dist: feature-engine (==1.6.1)
17
+ Requires-Dist: matplotlib (==3.6.3)
18
+ Requires-Dist: mlflow (==2.1.1)
19
+ Requires-Dist: numpy (==1.23.5)
20
+ Requires-Dist: optuna (==3.1.0)
21
+ Requires-Dist: pandas (==1.5.3)
22
+ Requires-Dist: plotly (==5.15.0)
23
+ Requires-Dist: rsa (==4.9)
24
+ Requires-Dist: scikit-learn (==1.2.1)
25
+ Requires-Dist: scipy (==1.10.0)
26
+ Requires-Dist: seaborn (==0.12.2)
27
+ Requires-Dist: starlette (==0.22.0)
28
+ Requires-Dist: statsmodels (==0.13.5)
29
+ Requires-Dist: ta (==0.10.2)
30
+ Requires-Dist: yfinance (==0.2.9)
31
+ Requires-Dist: hmmlearn (==0.3.0)
31
32
  Requires-Dist: boto3
32
33
  Provides-Extra: dev
33
- Requires-Dist: pytest >=7.0 ; extra == 'dev'
34
+ Requires-Dist: pytest (>=7.0) ; extra == 'dev'
34
35
 
35
36
  # Virgo Package
36
37
 
@@ -51,3 +52,4 @@ obj = stock_eda_panel(stock_code = 'PEP', n_days = 20)
51
52
  obj.get_data()
52
53
  print(obj.df.shape)
53
54
  ```
55
+
@@ -4,9 +4,9 @@ virgo_modules/src/aws_utils.py,sha256=q0l7D7ofo09Lu1QQjv-esheQ06uiSy1Pdq3xMul8zv
4
4
  virgo_modules/src/edge_utils.py,sha256=ll5pRs9EE20IsE5A1vA589TKzobkeA-b0d68jNTsu1U,13268
5
5
  virgo_modules/src/pull_artifacts.py,sha256=5OPrgR7pcMSdpbevDRhf0ebk7g7ZRjff4NpTIIWAKjE,1989
6
6
  virgo_modules/src/re_utils.py,sha256=fprzdQPKXdfZhWaWjuAHmTzc7BXuoPSWFny2ng-Qea0,64053
7
- virgo_modules/src/ticketer_source.py,sha256=U7_j31RosDpLln8w5TBW8bgJE1BDn6rcAQhgeXs_AUU,142521
8
- virgo_modules-0.0.76.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
9
- virgo_modules-0.0.76.dist-info/METADATA,sha256=NidPaLN4CHf3G2TEe3higIR9S_-HXlEl1DvdvHK9cCU,1429
10
- virgo_modules-0.0.76.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
11
- virgo_modules-0.0.76.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
12
- virgo_modules-0.0.76.dist-info/RECORD,,
7
+ virgo_modules/src/ticketer_source.py,sha256=4J0y51Tv0dGzFU7qZarGBIJSFsFWfY_NDNWZI6VN2Ws,142729
8
+ virgo_modules-0.0.77.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
9
+ virgo_modules-0.0.77.dist-info/METADATA,sha256=ntnzAoT5-GpgQpFcqjFDcpXtT9TUV1FOO8pIsHes4tY,1484
10
+ virgo_modules-0.0.77.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
11
+ virgo_modules-0.0.77.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
12
+ virgo_modules-0.0.77.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.38.4)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5