import pandas as pd
import [Link] as plt
import numpy as np
from [Link] import linregress
# Load the Excel file
input_path = r'C:\Users\alire\Downloads\Logan\converted_data5.xlsx'
xls = [Link](input_path)
# Read the Filtered_Data sheet
filtered_data = pd.read_excel(xls, sheet_name='Filtered_Data')
# Plot 1: All data
[Link](figsize=(10, 6))
[Link](filtered_data['SQRT_Time'], filtered_data['(P_initial -
BHP)/Downhole_Rate'], marker='o', linestyle='', color='b', label='All Data')
# Add labels and title
[Link]('Root Time (√days)')
[Link]('Rate Normalized Pressure (psi/rbbl/day)')
[Link]('Rate Normalized Pressure vs. Root Time (Filtered Data)')
[Link](True, which="both", ls="--")