This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from airflow import DAG | |
from airflow.decorators import dag, task | |
from sqlalchemy import create_engine, select | |
import pandas as pd | |
import psycopg2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import openpyxl as xl | |
from openpyxl.chart import BarChart, reference | |
def process_workbook(filename): | |
wb = xl.load_workbook(filename) | |
sheet = wb["Sheet1"] | |
for row in range (2, sheet.max_row +1): | |
cell=sheet.cell(row, 3) | |
corrected_price = cell.value*0.9 |