Skip to content

Instantly share code, notes, and snippets.

View PANDATD's full-sized avatar
:octocat:
Python Practics

MR. TEJAS DIXIT PANDATD

:octocat:
Python Practics
View GitHub Profile
@PANDATD
PANDATD / main_10_detailed_pdf_extraction.py
Created April 6, 2026 15:14
This code is a disciplined ETL pipeline that converts unstructured electoral PDF data into a clean, structured dataset. It follows a clear and traditional engineering approach—control the input, enforce structure, and validate before output. The configuration layer defines constants such as file paths, logging levels, and failure thresholds. Thi…
from __future__ import annotations
import logging
import re
from dataclasses import asdict, dataclass
from pathlib import Path
from typing import Final, Optional
import pandas as pd
import pdfplumber
html {
background-color: #fafafa;
}
body {
margin: 0;
}
.wrapper {
// You can edit this code!
// Click here and start typing.
package main
import "fmt"
func main() {
fmt.Println("Hello, 世界")
areaOfcircle(4.0)
areaOftriangle(2.0, 3.0)
@PANDATD
PANDATD / importantFuncation.py
Last active July 31, 2021 15:20
important funcations in python
import functools
# Filter Funcation
_filter = '''The Filter is pythons inbuild funcation,
Which will be use for filter the data for itrables such as list
[Syntax]
filter(funcaion, *itreables)
[Example]
is_positive(a: any):
return a > 0
def lsearch(array:list, search_element:any)->None:
"""
This funcation will help to search
element using linear search algorithm.
>>> lsearch ([134,56,2,78,0],78)
Element is Found at 4th index and 5th position
"""
i = 0
for i in range(len(array)):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.