pwc-india commited on
Commit
173bd24
1 Parent(s): e903cd2

Update pages/4DEDUPLICATION.py

Browse files
Files changed (1) hide show
  1. pages/4DEDUPLICATION.py +12 -31
pages/4DEDUPLICATION.py CHANGED
@@ -17,18 +17,18 @@ def main():
17
  sidebar()
18
  ########
19
 
20
- st.title('Detect Duplicate Records')
21
- st.subheader('SELECT TABLE')
22
- conn = pymssql.connect( "Server=sql-ext-dev-uks-001.database.windows.net;"
23
- "Database=sqldb-ext-dev-uks-001;"
24
- "UID=dbadmin;"
25
- "PWD=mYpa$$w0rD" )
26
- query1="select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='dbo' ORDER BY TABLE_NAME ASC"
27
- table1=pd.read_sql_query(query1,con=conn)
28
- table1['TABLE_NAME']=table1['TABLE_NAME'].astype('str')
29
- table_selector=st.selectbox('SOURCE TABLE NAME',['TCM', 'TCVM','TEM', 'TPM', 'TPP', 'TPT', 'TRM', 'TSCM', 'TSM'],index=None,placeholder='Select table for automated column mapping')
30
- btn11=button('RUN',key='run11')
31
- if table_selector is not None and btn11:
32
  st.markdown('---')
33
  query2="select * from [dbo].["+table_selector+"]"
34
  df = pd.read_sql_query(query2,con=conn)
@@ -139,23 +139,4 @@ if __name__ == '__main__':
139
  main()
140
 
141
 
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
 
 
17
  sidebar()
18
  ########
19
 
20
+ st.title('Detect Duplicate Records')
21
+ st.subheader('SELECT TABLE')
22
+ conn = pymssql.connect( "Server=sql-ext-dev-uks-001.database.windows.net;"
23
+ "Database=sqldb-ext-dev-uks-001;"
24
+ "UID=dbadmin;"
25
+ "PWD=mYpa$$w0rD" )
26
+ query1="select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='dbo' ORDER BY TABLE_NAME ASC"
27
+ table1=pd.read_sql_query(query1,con=conn)
28
+ table1['TABLE_NAME']=table1['TABLE_NAME'].astype('str')
29
+ table_selector=st.selectbox('SOURCE TABLE NAME',['TCM', 'TCVM','TEM', 'TPM', 'TPP', 'TPT', 'TRM', 'TSCM', 'TSM'],index=None,placeholder='Select table for automated column mapping')
30
+ btn11=button('RUN',key='run11')
31
+ if table_selector is not None and btn11:
32
  st.markdown('---')
33
  query2="select * from [dbo].["+table_selector+"]"
34
  df = pd.read_sql_query(query2,con=conn)
 
139
  main()
140
 
141
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142