-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnameCorrection.py
146 lines (109 loc) · 3.31 KB
/
nameCorrection.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
def name_correction(state):
if state == 'TT':
state = "India"
return state
if state == 'AN':
state = "Andaman and Nikobar Islands"
return state
if state == 'AP':
state = "Andhra Pradesh"
return state
if state == 'AR':
state = "Arunachal Pradesh"
return state
if state == 'AS':
state = "Assam"
return state
if state == 'BR':
state = "Bihar"
return state
if state == 'CH':
state = "Chandigarh"
return state
if state == 'CT':
state = "Chhattisgarh"
return state
if state == 'DL':
state = "Delhi"
return state
if state == 'DN':
state = "Dadra and Nagar Haveli and Daman and Diu"
return state
if state == 'GA':
state = "Goa"
return state
if state == 'GJ':
state = "Gujarat"
return state
if state == 'HP':
state = "Himachal Pradesh"
return state
if state == 'HR':
state = "Haryana"
return state
if state == 'JH':
state = "Jharkhand"
return state
if state == 'JK':
state = "Jammu and Kashmir"
return state
if state == 'KA':
state = "Karnataka"
return state
if state == 'KL':
state = "Kerala"
return state
if state == 'LA':
state = "Ladakh"
return state
if state == 'MH':
state = "Maharashtra"
return state
if state == 'ML':
state = "Meghalaya"
return state
if state == 'MN':
state ="Manipur"
return state
if state == 'MP':
state = "Madhya Pradesh"
return state
if state == 'MZ':
state = "Mizoram"
return state
if state == 'NL':
state = "Nagaland"
return state
if state == 'OR':
state ="Odisha"
return state
if state == 'PB':
state = "Punjab"
return state
if state == 'PY':
state = "Puducherry"
return state
if state == 'RJ':
state = "Rajasthan"
return state
if state == 'SK':
state ="Sikkim"
return state
if state == 'TG':
state ="Telangana"
return state
if state == 'TN':
state ="Tamil Nadu"
return state
if state == 'TR':
state = "Tripura"
return state
if state == 'UP':
state ="Uttar Pradesh"
return state
if state == 'UT':
state = "Uttarakhand"
return state
if state == 'WB':
state = "West Bengal"
return state