singhn9 commited on
Commit
071cec5
·
verified ·
1 Parent(s): bd680f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +103 -35
app.py CHANGED
@@ -13,41 +13,110 @@ import plotly.graph_objects as go
13
  # Data
14
  # ---------------------------
15
  AMCS = [
16
- "SBI MF", "ICICI Pru MF", "HDFC MF", "Nippon India MF", "Kotak MF",
17
- "UTI MF", "Axis MF", "Aditya Birla SL MF", "Mirae MF", "DSP MF"
 
 
 
 
 
 
 
 
18
  ]
19
 
20
  # ---------------------------
21
  # COMPANIES (deduplicated + screenshot items)
22
  # ---------------------------
23
  COMPANIES = [
24
- "Bajaj Finance","Adani Power","Infosys","ICICI Bank","HDFC Bank","NTPC",
25
- "Power Grid Corporation Of India","Trent","Colgate-Palmolive (India)","ITC",
26
- "Dixon Technologies (India)","Bank Of Maharashtra","Affle 3i",
27
- "L&T Finance","Kotak Mahindra Bank","AU Small Finance Bank","Titan Company",
28
- "Hindustan Unilever","Mankind Pharma","Shriram Finance","Tata Motors","Eternal",
29
- "Mahindra & Mahindra","Glenmark Pharmaceuticals","Sundaram Finance","Tata Consultancy Services",
30
- "Axis Bank","Dr. Reddy's Laboratories","Muthoot Finance","Avenue Supermarts",
31
- "UNO Minda","Jindal Steel","ACC","Tata Steel","Vedanta","Godrej Industries",
32
- "Berger Paints India","Tata Motors Passenger Vehicles","Bajaj Finserv",
33
- "Bharti Airtel","Larsen & Toubro","Maruti Suzuki India","HDFC Asset Management Co",
34
- "One97 Communications","Hyundai Motor India","Power Finance Corporation",
35
- "Solar Industries India","HPCL","Fortis Healthcare",
36
- "CEAT","NMDC","Ashok Leyland",
37
- "Tata Elxsi","Avanti Feeds","Karur Vysya Bank","Indian Bank",
38
- "Yatharth Hospital & Trauma Care","Dalmia Bharat","IREDA","HCC",
39
- "Premier Energies","Welspon Corp","Zydus Lifesciences",
40
- "Travel Food Services","Sai Silks (Kalamandir)",
41
- "Sumitomo Chemical India","Adani Ports and SEZ",
42
- "CESC",
43
- "Canara Bank","MCX","Pearl Global Industries","Aditya Birla Lifestyle Brands",
44
- "Angel One","Thyrocare Technologies","SJS Enterprises","Shilpa Medicare",
45
- "Hindalco Industries","Tata Communications",
46
- "Ujjivan Small Finance Bank","Steel Authority Of India",
47
- "Shaily Engineering Plastics","Persistent Systems",
48
- "Hindustan Aeronautics"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  ]
50
 
 
51
  # ---------------------------
52
  # BUY_MAP (from screenshot)
53
  # ---------------------------
@@ -104,9 +173,11 @@ BUY_MAP = {
104
  ]
105
  }
106
 
 
107
  # ---------------------------
108
  # SELL_MAP (from screenshot)
109
  # ---------------------------
 
110
  SELL_MAP = {
111
  "SBI MF": [
112
  "HDFC Bank",
@@ -163,9 +234,11 @@ SELL_MAP = {
163
  ]
164
  }
165
 
 
166
  # ---------------------------
167
  # COMPLETE_EXIT (from screenshot)
168
  # ---------------------------
 
169
  COMPLETE_EXIT = {
170
  "ICICI Pru MF": [
171
  "Tata Elxsi",
@@ -194,9 +267,7 @@ COMPLETE_EXIT = {
194
  "CEAT",
195
  "ACC"
196
  ],
197
- "Aditya Birla SL MF": [
198
- # screenshot shows no complete-exit items under ABSL; keep empty list to be explicit
199
- ],
200
  "Mirae MF": [
201
  "NMDC"
202
  ],
@@ -205,8 +276,6 @@ COMPLETE_EXIT = {
205
  ]
206
  }
207
 
208
- # Ensure empty list for Aditya Birla SL if the language of the file requires it:
209
- COMPLETE_EXIT["Aditya Birla SL MF"] = COMPLETE_EXIT.get("Aditya Birla SL MF", [])
210
 
211
  # ---------------------------
212
  # FRESH_BUY (from screenshot)
@@ -251,9 +320,7 @@ FRESH_BUY = {
251
  "Hindustan Aeronautics",
252
  "Ujjivan Small Finance Bank"
253
  ],
254
- "Mirae MF": [
255
- # empty in screenshot
256
- ],
257
  "DSP MF": [
258
  "Eternal",
259
  "Hindustan Aeronautics",
@@ -261,6 +328,7 @@ FRESH_BUY = {
261
  ]
262
  }
263
 
 
264
  def sanitize_map(m):
265
  out = {}
266
  for k, vals in m.items():
 
13
  # Data
14
  # ---------------------------
15
  AMCS = [
16
+ "SBI MF",
17
+ "ICICI Pru MF",
18
+ "HDFC MF",
19
+ "Nippon India MF",
20
+ "Kotak MF",
21
+ "UTI MF",
22
+ "Axis MF",
23
+ "Aditya Birla SL MF",
24
+ "Mirae MF",
25
+ "DSP MF"
26
  ]
27
 
28
  # ---------------------------
29
  # COMPANIES (deduplicated + screenshot items)
30
  # ---------------------------
31
  COMPANIES = [
32
+ "ACC",
33
+ "Adani Ports and SEZ",
34
+ "Adani Power",
35
+ "Aditya Birla Lifestyle Brands",
36
+ "Affle 3i",
37
+ "Angel One",
38
+ "Ashok Leyland",
39
+ "Avenue Supermarts",
40
+ "Avanti Feeds",
41
+ "Axis Bank",
42
+ "AU Small Finance Bank",
43
+ "Bajaj Finance",
44
+ "Bajaj Finserv",
45
+ "Bank Of Maharashtra",
46
+ "Berger Paints India",
47
+ "Bharti Airtel",
48
+ "Canara Bank",
49
+ "CESC",
50
+ "CEAT",
51
+ "Colgate-Palmolive (India)",
52
+ "Dalmia Bharat",
53
+ "Dixon Technologies (India)",
54
+ "Dr. Reddy's Laboratories",
55
+ "Eternal",
56
+ "Fortis Healthcare",
57
+ "Glenmark Pharmaceuticals",
58
+ "Godrej Industries",
59
+ "HCC",
60
+ "HDFC Asset Management Co",
61
+ "HDFC Bank",
62
+ "Hindalco Industries",
63
+ "Hindustan Aeronautics",
64
+ "Hindustan Unilever",
65
+ "HPCL",
66
+ "Hyundai Motor India",
67
+ "ICICI Bank",
68
+ "Infosys",
69
+ "Indian Bank",
70
+ "IREDA",
71
+ "ITC",
72
+ "Jindal Steel",
73
+ "Karur Vysya Bank",
74
+ "Kotak Mahindra Bank",
75
+ "L&T Finance",
76
+ "Larsen & Toubro",
77
+ "Mahindra & Mahindra",
78
+ "Mankind Pharma",
79
+ "Maruti Suzuki India",
80
+ "MCX",
81
+ "Muthoot Finance",
82
+ "NMDC",
83
+ "NTPC",
84
+ "One97 Communications",
85
+ "Pearl Global Industries",
86
+ "Persistent Systems",
87
+ "Praj Industries",
88
+ "Power Finance Corporation",
89
+ "Power Grid Corporation Of India",
90
+ "Premier Energies",
91
+ "Sai Silks (Kalamandir)",
92
+ "Shaily Engineering Plastics",
93
+ "Shilpa Medicare",
94
+ "Shriram Finance",
95
+ "SJS Enterprises",
96
+ "Solar Industries India",
97
+ "Steel Authority Of India",
98
+ "Sumitomo Chemical India",
99
+ "Sundaram Finance",
100
+ "Suzlon Energy",
101
+ "Tata Communications",
102
+ "Tata Consultancy Services",
103
+ "Tata Elxsi",
104
+ "Tata Motors",
105
+ "Tata Motors Passenger Vehicles",
106
+ "Tata Steel",
107
+ "Titan Company",
108
+ "Trent",
109
+ "Travel Food Services",
110
+ "Ujjivan Small Finance Bank",
111
+ "UNO Minda",
112
+ "Vedanta",
113
+ "Welspon Corp",
114
+ "Welspun Corp",
115
+ "Yatharth Hospital & Trauma Care",
116
+ "Zydus Lifesciences"
117
  ]
118
 
119
+
120
  # ---------------------------
121
  # BUY_MAP (from screenshot)
122
  # ---------------------------
 
173
  ]
174
  }
175
 
176
+
177
  # ---------------------------
178
  # SELL_MAP (from screenshot)
179
  # ---------------------------
180
+
181
  SELL_MAP = {
182
  "SBI MF": [
183
  "HDFC Bank",
 
234
  ]
235
  }
236
 
237
+
238
  # ---------------------------
239
  # COMPLETE_EXIT (from screenshot)
240
  # ---------------------------
241
+
242
  COMPLETE_EXIT = {
243
  "ICICI Pru MF": [
244
  "Tata Elxsi",
 
267
  "CEAT",
268
  "ACC"
269
  ],
270
+ "Aditya Birla SL MF": [],
 
 
271
  "Mirae MF": [
272
  "NMDC"
273
  ],
 
276
  ]
277
  }
278
 
 
 
279
 
280
  # ---------------------------
281
  # FRESH_BUY (from screenshot)
 
320
  "Hindustan Aeronautics",
321
  "Ujjivan Small Finance Bank"
322
  ],
323
+ "Mirae MF": [],
 
 
324
  "DSP MF": [
325
  "Eternal",
326
  "Hindustan Aeronautics",
 
328
  ]
329
  }
330
 
331
+
332
  def sanitize_map(m):
333
  out = {}
334
  for k, vals in m.items():