PyQuantimClient 1.0.67__tar.gz → 1.0.69__tar.gz

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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyQuantimClient
3
- Version: 1.0.67
3
+ Version: 1.0.69
4
4
  Summary: Python client to access quantIM services
5
5
  Author: Daniel Velasquez
6
6
  Author-email: daniel.velasquez@sura-im.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyQuantimClient
3
- Version: 1.0.67
3
+ Version: 1.0.69
4
4
  Summary: Python client to access quantIM services
5
5
  Author: Daniel Velasquez
6
6
  Author-email: daniel.velasquez@sura-im.com
@@ -4,7 +4,7 @@ setup(
4
4
  name='PyQuantimClient',
5
5
  packages=['PyQuantimClient'],
6
6
  package_dir={'PyQuantimClient': 'src'},
7
- version='1.0.67',
7
+ version='1.0.69',
8
8
  description='Python client to access quantIM services',
9
9
  author='Daniel Velasquez',
10
10
  author_email='daniel.velasquez@sura-im.com',
@@ -1,8 +1,9 @@
1
1
  # -*- coding: utf-8 -*-
2
- import pandas as pd
3
- import numpy as np
2
+ import re
4
3
  import datetime as dt
5
4
  from dateutil.relativedelta import relativedelta as rd
5
+ import pandas as pd
6
+ import numpy as np
6
7
  from .api import quantim
7
8
 
8
9
  class bi_data(quantim):
@@ -33,7 +34,6 @@ class bi_data(quantim):
33
34
  asset_class_df['index'] = [k.replace('tipofondo -', '').strip() for k in asset_class_df['index'].values]
34
35
  asset_class_df = asset_class_df.loc[np.in1d(asset_class_df['index'], ['A', 'B', 'C', 'D', 'E'])]
35
36
 
36
- asset_class_df.index.unique()
37
37
  consol_df = pd.DataFrame()
38
38
  acc_map = [{'id':'SUBTOTAL RENTA VARIABLE', 'label':'Renta Variable'},
39
39
  {'id':'SUBTOTAL RENTA FIJA', 'label':'Renta Fija'},
@@ -66,4 +66,4 @@ class bi_data(quantim):
66
66
  asset_detail_df = asset_detail_df.loc[np.in1d(asset_detail_df['index'], ['A', 'B', 'C', 'D', 'E'])]
67
67
  asset_detail_df = asset_detail_df.groupby(['index', 'nemo', 'glosa']).sum().reset_index(level='index').pivot(columns='index', values='monto_dolares').reset_index()
68
68
 
69
- return asset_class_df, asset_detail_df
69
+ return consol_df, asset_detail_df