Added 1 More Python Program to Extract Tables From docx,txt and PDF
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000000..343c8ace35
Binary files /dev/null and b/.DS_Store differ
diff --git a/Extract-Table-from-pdf-txt-docx/.DS_Store b/Extract-Table-from-pdf-txt-docx/.DS_Store
new file mode 100644
index 0000000000..f56eab4a12
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/.DS_Store differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child1/Document_Child1.docx b/Extract-Table-from-pdf-txt-docx/Parent/Child1/Document_Child1.docx
new file mode 100644
index 0000000000..aaa88327fe
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child1/Document_Child1.docx differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child1/Pdf1_Child1.pdf b/Extract-Table-from-pdf-txt-docx/Parent/Child1/Pdf1_Child1.pdf
new file mode 100644
index 0000000000..d75c34ac2a
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child1/Pdf1_Child1.pdf differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child1/Pdf2_Child2.pdf b/Extract-Table-from-pdf-txt-docx/Parent/Child1/Pdf2_Child2.pdf
new file mode 100644
index 0000000000..a66417f02e
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child1/Pdf2_Child2.pdf differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child1/Text_Child1.txt b/Extract-Table-from-pdf-txt-docx/Parent/Child1/Text_Child1.txt
new file mode 100644
index 0000000000..44c8d0e41a
--- /dev/null
+++ b/Extract-Table-from-pdf-txt-docx/Parent/Child1/Text_Child1.txt
@@ -0,0 +1 @@
+AB,DF,G,DF,SDF,ADA,QW,WE,ER,FD
2,45,56,7,8,9,65,3,5436,78
12,34,345,667,56,5657,768,45,46,67
67,89,8,9,89,8,78,9,67,67
1,23,4,5,65,76,8,6,45,67

\ No newline at end of file
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child2/Document_Child2.docx b/Extract-Table-from-pdf-txt-docx/Parent/Child2/Document_Child2.docx
new file mode 100644
index 0000000000..88e1ea52b4
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child2/Document_Child2.docx differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child2/Pdf1_Child2.pdf b/Extract-Table-from-pdf-txt-docx/Parent/Child2/Pdf1_Child2.pdf
new file mode 100644
index 0000000000..8bdda7f411
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child2/Pdf1_Child2.pdf differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child2/Pdf2_Child2.pdf b/Extract-Table-from-pdf-txt-docx/Parent/Child2/Pdf2_Child2.pdf
new file mode 100644
index 0000000000..7717d758b7
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child2/Pdf2_Child2.pdf differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child2/Text_Child2.txt b/Extract-Table-from-pdf-txt-docx/Parent/Child2/Text_Child2.txt
new file mode 100644
index 0000000000..59047f30d2
--- /dev/null
+++ b/Extract-Table-from-pdf-txt-docx/Parent/Child2/Text_Child2.txt
@@ -0,0 +1 @@
+AC,DXFC,GB,DCF,SCDF,BADA,QB,W,R,F,C
2,45,56,7,8,9,65,3,5436,78,34
12,34,345,667,56,5657,768,45,46,67,34
67,89,8,9,89,8,78,9,67,67,43
1,23,4,5,65,76,8,6,45,67,61

\ No newline at end of file
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child3/Document_Child3.docx b/Extract-Table-from-pdf-txt-docx/Parent/Child3/Document_Child3.docx
new file mode 100644
index 0000000000..054d67e5b7
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child3/Document_Child3.docx differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child3/Pdf1_Child3.pdf b/Extract-Table-from-pdf-txt-docx/Parent/Child3/Pdf1_Child3.pdf
new file mode 100644
index 0000000000..0fe1113328
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child3/Pdf1_Child3.pdf differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child3/Pdf2_Child3.pdf b/Extract-Table-from-pdf-txt-docx/Parent/Child3/Pdf2_Child3.pdf
new file mode 100644
index 0000000000..b8e1353851
Binary files /dev/null and b/Extract-Table-from-pdf-txt-docx/Parent/Child3/Pdf2_Child3.pdf differ
diff --git a/Extract-Table-from-pdf-txt-docx/Parent/Child3/Text_Child3.txt b/Extract-Table-from-pdf-txt-docx/Parent/Child3/Text_Child3.txt
new file mode 100644
index 0000000000..ec47af5c87
--- /dev/null
+++ b/Extract-Table-from-pdf-txt-docx/Parent/Child3/Text_Child3.txt
@@ -0,0 +1 @@
+AF,FC,GFB,DW,SF,BA,Q,WS,RR,FR,CW
2,45,56,7,8,9,65,3,5436,78,34
12,34,345,667,56,5657,768,45,46,67,34
67,89,8,9,89,8,78,9,67,67,43
1,23,4,5,65,76,8,6,45,67,61


\ No newline at end of file
diff --git a/Extract-Table-from-pdf-txt-docx/main.py b/Extract-Table-from-pdf-txt-docx/main.py
new file mode 100644
index 0000000000..87aff4c6f3
--- /dev/null
+++ b/Extract-Table-from-pdf-txt-docx/main.py
@@ -0,0 +1,104 @@
+# %%
+import pandas as pd
+import os
+import tabula
+from docx.api import Document
+
+# %%
+
+if os.path.isdir('Parent')== True:
+    os.chdir('Parent')
+#FOR CHILD1 DIRECTORY
+if os.path.isdir('Child1')==True:
+    os.chdir('Child1')
+#PDF FILE READING
+if os.path.isfile('Pdf1_Child1.pdf')==True:
+    df_pdf_child1=tabula.read_pdf('Pdf1_Child1.pdf',pages='all')
+#DOCUMENT READING
+if os.path.isfile('Document_Child1.docx')==True:
+    document = Document('Document_Child1.docx')
+    table = document.tables[0]
+    data = []
+
+    keys = None
+    for i, row in enumerate(table.rows):
+        text = (cell.text for cell in row.cells)
+        if i == 0:
+            keys = tuple(text)
+            continue
+        row_data = dict(zip(keys, text))
+        data.append(row_data)
+df_document_child1=pd.DataFrame(data)
+#TEXT READING
+if os.path.isfile('Text_Child1.txt')==True:
+    df_text_child1=pd.read_csv('Text_Child1.txt')
+
+# %%
+df_text_child1
+
+
+# %%
+os.chdir('../')
+if os.path.isdir('Parent')== True:
+    os.chdir('Parent')
+#FOR CHILD2 DIRECTORY
+if os.path.isdir('Child2')==True:
+    os.chdir('Child2')
+#PDF FILE READING
+if os.path.isfile('Pdf1_Child2.pdf')==True:
+    df_pdf_child2=tabula.read_pdf('Pdf1_Child2.pdf',pages='all')
+#DOCUMENT READING
+if os.path.isfile('Document_Child2.docx')==True:
+    document = Document('Document_Child2.docx')
+    table = document.tables[0]
+    data = []
+
+    keys = None
+    for i, row in enumerate(table.rows):
+        text = (cell.text for cell in row.cells)
+        if i == 0:
+            keys = tuple(text)
+            continue
+        row_data = dict(zip(keys, text))
+        data.append(row_data)
+df_document_child2=pd.DataFrame(data)
+#TEXT READING
+if os.path.isfile('Text_Child2.txt')==True:
+    df_text_child2=pd.read_csv('Text_Child2.txt')
+
+# %%
+df_pdf_child2[0].head(4)
+
+# %%
+os.chdir('../')
+if os.path.isdir('Parent')== True:
+    os.chdir('Parent')
+#FOR CHILD3 DIRECTORY
+if os.path.isdir('Child3')==True:
+    os.chdir('Child3')
+#PDF FILE READING
+if os.path.isfile('Pdf1_Child3.pdf')==True:
+    df_pdf_child3=tabula.read_pdf('Pdf1_Child3.pdf',pages='all')
+#DOCUMENT READING
+if os.path.isfile('Document_Child3.docx')==True:
+    document = Document('Document_Child3.docx')
+    table = document.tables[0]
+    data = []
+
+    keys = None
+    for i, row in enumerate(table.rows):
+        text = (cell.text for cell in row.cells)
+        if i == 0:
+            keys = tuple(text)
+            continue
+        row_data = dict(zip(keys, text))
+        data.append(row_data)
+df_document_child3=pd.DataFrame(data)
+#TEXT READING
+if os.path.isfile('Text_Child3.txt')==True:
+    df_text_child3=pd.read_csv('Text_Child3.txt')
+
+# %%
+df_text_child3
+
+# %%

Added 1 More Python Program to Extract Tables From docx,txt and PDF