Con Altos Erraticos Phi Rocktype 1,2,4 - Jupyter Notebook

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

13/9/22, 15:34 CON ALTOS ERRATICOS PHI ROCKTYPE 1,2,4 - Jupyter Notebook

In [1]:

import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

import os

In [3]:

path=os.getcwd()

filename=path+"\phiAE.csv"

print(filename)

C:\Users\usuario\PC1\phiAE.csv

In [4]:

fldata=pd.read_csv(filename)

fldata.head()

Out[4]:

Phi

0 0.30351

1 0.30213

2 0.31142

3 0.33880

4 0.20281

In [5]:

fldata.describe()

Out[5]:

Phi

count 12861.000000

mean 0.283131

std 0.077175

min 0.010100

25% 0.224030

50% 0.311690

75% 0.343490

max 0.438520

localhost:8891/notebooks/PC1/CON ALTOS ERRATICOS PHI ROCKTYPE 1%2C2%2C4.ipynb# 1/4


13/9/22, 15:34 CON ALTOS ERRATICOS PHI ROCKTYPE 1,2,4 - Jupyter Notebook

In [6]:

fldata['Phi'].describe(percentiles=[0.25,.50,.75,0.95,0.98])

Out[6]:

count 12861.000000

mean 0.283131

std 0.077175

min 0.010100

25% 0.224030

50% 0.311690

75% 0.343490

95% 0.368440

98% 0.377568

max 0.438520

Name: Phi, dtype: float64

In [7]:

fldata.hist(column=['Phi'])

Out[7]:

array([[<AxesSubplot:title={'center':'Phi'}>]], dtype=object)

localhost:8891/notebooks/PC1/CON ALTOS ERRATICOS PHI ROCKTYPE 1%2C2%2C4.ipynb# 2/4


13/9/22, 15:34 CON ALTOS ERRATICOS PHI ROCKTYPE 1,2,4 - Jupyter Notebook

In [8]:

fig, ax = plt.subplots(figsize=(8, 4))


ax.hist(fldata['Phi'],bins=15,cumulative=True,
density=True, histtype='step',label='Phi CDF',
color='purple',linewidth=1.5)

# tidy up the figure

ax.grid(True)

ax.set_title('Histograma Acumulativo en Saltos')

ax.set_xlabel('ley de Phi(%)')

ax.set_ylabel('Probabilidad de ocurrencia')

y = np.array(fldata['Phi'],order='K')

In [9]:

fldata.boxplot(column=['Phi'])

Out[9]:

<AxesSubplot:>

localhost:8891/notebooks/PC1/CON ALTOS ERRATICOS PHI ROCKTYPE 1%2C2%2C4.ipynb# 3/4


13/9/22, 15:34 CON ALTOS ERRATICOS PHI ROCKTYPE 1,2,4 - Jupyter Notebook

In [ ]:

localhost:8891/notebooks/PC1/CON ALTOS ERRATICOS PHI ROCKTYPE 1%2C2%2C4.ipynb# 4/4

You might also like