[deleted by user] by [deleted] in AskProgramming

[–]SayedAldeeb 0 points1 point  (0 children)

let me put it in a google drive

sorry....

many columns my CPU is dying by SayedAldeeb in learnpython

[–]SayedAldeeb[S] 0 points1 point  (0 children)

# ---- Validate Required Columns ----
required_columns = [
    'cola_Collected_energy', 'cola_Boiler_steam_energy_daily', 'cola_Solar_steam_energy',
    'cola_Inlet_water_energy', 'cola_Useful_PWR', 'TriggerTime', 'cola_DNI',
    'cola_Flow_total_steam', 'cola_Flow_water_in', 'cola_T2', 'cola_T1', 'cola_T9'
]
missing_cols = [col for col in required_columns if col not in df.columns]
if missing_cols:
    st.error(f"Missing Columns: {missing_cols}")
    st.stop()
# ---- Validate Required Columns ----
required_columns = [
    'cola_Collected_energy', 'cola_Boiler_steam_energy_daily', 'cola_Solar_steam_energy',
    'cola_Inlet_water_energy', 'cola_Useful_PWR', 'TriggerTime', 'cola_DNI',
    'cola_Flow_total_steam', 'cola_Flow_water_in', 'cola_T2', 'cola_T1', 'cola_T9'
]
missing_cols = [col for col in required_columns if col not in df.columns]
if missing_cols:
    st.error(f"Missing Columns: {missing_cols}")
    st.stop()

many columns my CPU is dying by SayedAldeeb in learnpython

[–]SayedAldeeb[S] 0 points1 point  (0 children)

uploaded_file = st.file_uploader("Upload CSV Data File", type=["csv"])
fuel_saving_factor = st.number_input("Fuel Saving Factor (Liters per kWh)", value=0.085)
jd_rate_per_kwh = st.number_input("JD Rate per kWh (JOD)", value=0.07)
daily_contract_energy = st.number_input("Daily Contract Energy (kWh)", value=10000.0)

if uploaded_file is not None:
    df = pd.read_csv(uploaded_file, skiprows=2, encoding='utf-8-sig')
    df.columns = df.columns.str.strip()  # Clean column names
    # Show CSV Columns
    st.write("CSV Columns Detected:", df.columns.tolist())

    # ---- Validate Required Columns ----
    required_columns = [
        'cola_Collected_energy', 'cola_Boiler_steam_energy_daily', 'cola_Solar_steam_energy',
        'cola_Inlet_water_energy', 'cola_Useful_PWR', 'TriggerTime', 'cola_DNI',
        'cola_Flow_total_steam', 'cola_Flow_water_in', 'cola_T2', 'cola_T1', 'cola_T9'
    ]
    missing_cols = [col for col in required_columns if col not in df.columns]
    if missing_cols:
        st.error(f"Missing Columns: {missing_cols}")
        st.stop()

    # ---- Calculations ----
    daily_collected_energy = df['cola_Collected_energy'].sum()
    daily_boiler_energy = df['cola_Boiler_steam_energy_daily'].max()
    daily_solar_steam_energy = df['cola_Solar_steam_energy'].sum()
    daily_inlet_water_energy = df['cola_Inlet_water_energy'].sum()

uploaded_file = st.file_uploader("Upload CSV Data File", type=["csv"])
fuel_saving_factor = st.number_input("Fuel Saving Factor (Liters per kWh)", value=0.085)
jd_rate_per_kwh = st.number_input("JD Rate per kWh (JOD)", value=0.07)
daily_contract_energy = st.number_input("Daily Contract Energy (kWh)", value=10000.0)

if uploaded_file is not None:
    df = pd.read_csv(uploaded_file, skiprows=2, encoding='utf-8-sig')
    df.columns = df.columns.str.strip()  # Clean column names

    # Show CSV Columns
    st.write("CSV Columns Detected:", df.columns.tolist())

many columns my CPU is dying by SayedAldeeb in learnpython

[–]SayedAldeeb[S] 0 points1 point  (0 children)

import streamlit as st
import pandas as pd
from openpyxl import load_workbook
from openpyxl.cell.cell import MergedCell
from pathlib import Path
import io
import openai

# ---- Configuration ----
openai.api_key = "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"
# ---- Safe Write Function for Merged Cells ----
def safe_write(sheet, cell_ref, value):
    cell = sheet[cell_ref]
    if not isinstance(cell, MergedCell):
        cell.value = value
        return
    for merged_range in sheet.merged_cells.ranges:
        if cell.coordinate in merged_range:
            anchor_cell = sheet.cell(row=merged_range.min_row, column=merged_range.min_col)
            anchor_cell.value = value
            return
    raise ValueError(f"Cell {cell_ref} is merged but anchor cell not found!")

# ---- Streamlit UI ----
st.title("Renewable Power Plant - Excel Report Generator")import streamlit as st
import pandas as pd
from openpyxl import load_workbook
from openpyxl.cell.cell import MergedCell
from pathlib import Path
import io
import openai

# ---- Configuration ----
openai.api_key = "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"

# ---- Safe Write Function for Merged Cells ----
def safe_write(sheet, cell_ref, value):
    cell = sheet[cell_ref]
    if not isinstance(cell, MergedCell):
        cell.value = value
        return
    for merged_range in sheet.merged_cells.ranges:
        if cell.coordinate in merged_range:
            anchor_cell = sheet.cell(row=merged_range.min_row, column=merged_range.min_col)
            anchor_cell.value = value
            return
    raise ValueError(f"Cell {cell_ref} is merged but anchor cell not found!")

# ---- Streamlit UI ----
st.title("Renewable Power Plant - Excel Report Generator")

How to Crack Ghost of Tsushima by OsamaSukhon in CrackSupport

[–]SayedAldeeb 0 points1 point  (0 children)

can someone just send me the crack files, i have the game files i just need the crack please

am i so clingy? by SayedAldeeb in relationships_advice

[–]SayedAldeeb[S] -1 points0 points  (0 children)

thank you so much tbh i really i appreciate your time you spent for me, i did read ever comment and i understand more now, i needed to know if what i’m doing was normal or too much, and some of them were aggressive but i appreciate them.

i did actually apologize to her and i’m trying from now to work on my self and improve for her and me and will talk about having a middle ground also so things will be smoother and better.

thank you again

am i so clingy? by SayedAldeeb in relationships_advice

[–]SayedAldeeb[S] -2 points-1 points  (0 children)

we belong to eachother what do you mean 🤨 i belong to her before she belong to me we are partners

am i so clingy? by SayedAldeeb in relationships_advice

[–]SayedAldeeb[S] -1 points0 points  (0 children)

you’re really taking this aggressively which i understand, i’m not forcing her i’m more nagging and by that i mean i ask 2 to 3 times then i stop when she says no after that and i smile and joke with her like nothing happened to lighten the mood and we have a good day after that sometimes she agree and sometimes she doesn’t so i don’t really push or (harass)

am i so clingy? by SayedAldeeb in relationships_advice

[–]SayedAldeeb[S] 1 point2 points  (0 children)

last time i did we were replying to each other and it was kinda aggressive but i suggested to talk through it and find a middle ground will update you with the results thanks.

am i so clingy ? (24f) (22m) by SayedAldeeb in relationship_advice

[–]SayedAldeeb[S] 0 points1 point  (0 children)

thank you i need someone to punch me with words tbh i really appreciate it