<jupyter_start><jupyter_text>Day 3 : Data Loading and Manipulation and Visulatiozation  You can use the following liberaries for your assignment:> Numpy, Pandas, Matplotlib, seaborn, LASIO, Welly  Kindly load the las file of F02-1_logs.las well from the data folder Perform the below Tasks:>1. Plot well logs using matplotlib for every well-log in the las file2. Calculate the 5 points statistics for every well-log (min, Max and Percentiles[0.1,0.25,0.5,0.75,0.9]) + 10 and 90% percentiles.3. Calculate the VP log from the DT sonic curve.4. Calculate the VP log using AI and RHOB log.5. Plot VP from sonic and VP from AI-RHOB logs and compare between them. any changes?<jupyter_code># Importing Libraries
import pandas as pd
import numpy as np
from IPython.display import display
import matplotlib.pyplot as plt
import seaborn as sb
import lasio
# read las file
F02 = lasio.read("Dutch_F3_Logs\F02-1_logs.las")
# Into dataframe
df = F02.df()
# Curves?
print ('curves: ', F02.keys())
#1. Plot well logs using matplotlib for every well-log in the las file

import matplotlib as mpl

rows, cols = 1, df.shape[1]

cmap = mpl.cm.CMRmap

fig,ax = plt.subplots(nrows=rows, ncols=cols, figsize=(20,8), sharey=True)
names = [ 'RHOB', 'DT', 'GR', 'AI', 'AI_REL', 'PHIE']
colrs = [ 'red', 'green', 'blue', 'orange', 'blue', 'black']
for i in range(cols):
    ax[i].plot(df.iloc[:,i], df.index ,linewidth='1.5', color = cmap(i/9))
    ax[i].set_ylim(max(df.index), min(df.index))
    ax[i].minorticks_on()
    ax[i].grid(which='major', linestyle='dashed', linewidth='1', color='black')
    ax[i].grid(which='minor', linestyle=':', linewidth='0.5', color='black') 
    ax[i].set_title('%s' %names[i])
#2. Calculate the 5 points statistics for every well-log (min, Max and Percentiles[0.1,0.25,0.5,0.75,0.9]) + 10 and 90% percentiles.
df.dropna(inplace=True)
df.describe(percentiles=[0.1,0.25,0.5,0.75,0.9])
#3. Calculate the VP log from the DT sonic curve.
df['VP'] = 1000000/df['DT']
df.VP
#4. Calculate the VP log using AI and RHOB log.
df['VP_2']= df['AI']/df['RHOB']
df.VP_2
#5. Plot VP from sonic and VP from AI-RHOB logs and compare between them. any changes?
df.VP.plot(figsize=(15,5), grid=True, legend=True);
df.VP_2.plot(figsize=(15,5),linestyle='dotted', grid=True, legend=True);<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15077989601386482, 'fraction_numerical': 0.042027729636048526, 'mean_word_length': 4.875318066157761, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '466435', 'license': 'MIT', 'n_tokens_mistral': 922, 'n_tokens_neox': 859, 'n_words': 268, 'path': 'Day3_of_10_IA.ipynb', 'repo_name': 'Dr-Islam/Learn', 'size': '2308'}