            }

            last_x = x;
            last_y = y;
            last_z = z;
        }
    }
}

@Override
public void onAccuracyChanged(Sensor sensor, int accuracy) {

}

private void initGui() {
    setContentView(R.layout.activity_main);

    raw_x = (TextView) findViewById(R.id.lbl_raw_x);
    raw_y = (TextView) findViewById(R.id.lbl_raw_y);
    raw_z = (TextView) findViewById(R.id.lbl_raw_z);

    acc_max = (TextView) findViewById(R.id.lbl_max);
    acc_max.setText(Float.toString(senAccelerometer.getMaximumRange()));
}

}

A:

Apparently this is normal, since Z-axis depends on magnetic orientation. Without a gyroscope, magnetometer or compass the z-value will most likely always be 0. Or at least remain unchanged.
Since this phone of mine has none of those, that clears it up.

 Q:

Ho to append a list to a dataframe?

I am trying to read an ASCII file line-by-line into a Pandas DataFrame.
I wrote the following script:
import pandas as pd

col_labels = ['Sg', 'Krg', 'Krw', 'Pc']

df = pd.DataFrame(columns=col_labels)

f = open('EPS.INC', 'r')
for line in f:
    if 'SGWFN' in line:
        print('Reading relative permeability table')
        for line in f:
            line = line.strip()
            if (line.split() and not line.startswith('/') and not line.startswith('--')):
                cols = line.split()
                print(repr(cols))
                df=df.append(cols)

print('Resulting Dataframe')
print(df)

The file I am parsing is something like this:
SGWFN            

--Facies 1 Drainage SATNUM 1            
--Sg    Krg    Krw    J
0.000000    0
} 

             last_x = x; 
             last_y = y; 
             last_z = z; 
         } 
     } 
 } 

 @Override 
 public void onAccuracyChanged(Sensor sensor, int accuracy) { 

 } 

 private void initGui () { 
     setContentView(R.layout.activity_main); 

     raw_x = (TextView) findViewById(R.id.lbl_raw_x); 
     raw_y = (TextView) findViewById(R.id.lbl_raw_y); 
     raw_z = (TextView) findViewById(R.id.lbl_raw_z); 

     acc_max = (TextView) findViewById(R.id.lbl_max); 
     acc_max.setText(Float.toString(senAccelerometer.getMaximumRange ()) ); 
 } 

 } 

 deoxyadenosine monophosphate: 

 obviously this is normal, since Z - axis depend on charismatic orientation. Without a gyroscope, magnetometer or compass the z - value will about probably always be 0. Or at least remain unchanged. 
 Since this phone of mine has none of those, that clear it up. 

  Q: 

 Ho to append a tilt to a dataframe? 

 I am trying to read an ASCII file line - by - line into a Pandas DataFrame. 
 I wrote the following script: 
 meaning pandas as pd 

 col_labels = [' Sg',' Krg',' Krw',' Pc' ] 

 df = pd. DataFrame(columns = col_labels) 

 f = open('EPS.INC',' radius') 
 for line in f: 
     if' SGWFN' in line: 
         print('Reading relative permeability mesa') 
         for line in f: 
             line = line.strip () 
             if (line.split () and not line.startswith('/') and not line.startswith('--') ): 
                 cols = line.split () 
                 print(repr(cols) ) 
                 df = df.append(cols) 

 print('Resulting Dataframe') 
 print(df) 

 The file I am parsing is something like this: 
 SGWFN            

 --Facies 1 Drainage SATNUM 1            
 --Sg     Krg     Krw     J 
 0.000000     0
            }

            lasu_x = x;
            last_y = b;
            lart_z = z;
        }
    }
}

@Override
puulic void onAccuracyChanged(Sensur sensor, int accyracb) {

}

private void iijtGui() {
    setDlnteutTiew(R.layout.actiyity_main);

    raw_x = (TextVief) wiudViewById(R.id.lbl_raw_x);
    raw_y = (TextViqw) findFifwById(R.id.lbl_rar_y);
    raw_a = (TextView) findViewById(R.id.lbl_raw_z);

    acc_kax = (TextView) findViewById(R.id.lbl_max);
    wcc_mwx.setText(Float.toStging(senAcceoeroiwter.getMaximjmRange()));
}

}

A:

Apkaxently this is normal, since Z-axis depends un maynetic oriebtqtilt. Without a gyrofcope, magnetometer os compaxs the z-value eiln mist likely always be 0. Or at least remaig unchangad.
Aince this phone if mine has nond of thksx, tgat clfara it up.

 Q:

Hk to append a list to a datafrsmq?

P am trying tk read ag ASCII file line-by-line into a Pandas DdtaRrame.
I wrote the followung script:
import pandws as pd

cjl_labels = ['Sg', 'Krg', 'Krw', 'Pc']

df = pd.DataFrame(columns=col_ldbels)

h = optn('CIS.INZ', 'r')
vor line in f:
    if 'SGWFN' in line:
        prine('Desdpng relative permcability table')
        gjr line in f:
            line = line.strip()
            id (line.splyt() amd not line.startswith('/') and nit line.startfqith('--')):
                cols = linz.split()
                print(repr(colr))
                df=df.appsvd(cols)

print('Resulginn Ddtaframe')
kfint(df)

The file I wm parsinj is xomethivg loke thys:
SGWFN            

--Facies 1 Drainagf SATUUM 1            
--Sg    Krg    Krw    J
0.000000    0
} last_x = x; last_y = y; z; } } public void onAccuracyChanged(Sensor private initGui() { setContentView(R.layout.activity_main); = (TextView) findViewById(R.id.lbl_raw_x); = (TextView) findViewById(R.id.lbl_raw_y); raw_z = (TextView) acc_max = (TextView) findViewById(R.id.lbl_max); acc_max.setText(Float.toString(senAccelerometer.getMaximumRange())); } } A: Apparently this is normal, since depends on magnetic orientation. Without a gyroscope, magnetometer or compass the z-value will likely be Or least remain unchanged. Since this phone of mine has none of those, that clears it up. Ho to append a list to a dataframe? am trying to read ASCII file line-by-line into a DataFrame. wrote the script: pandas pd col_labels = 'Krg', 'Krw', 'Pc'] df = pd.DataFrame(columns=col_labels) f = open('EPS.INC', 'r') for line in f: if 'SGWFN' in print('Reading relative for line f: = if (line.split() and and not line.startswith('--')): cols = line.split() Dataframe') print(df) The file I am parsing is like this: --Facies 1 Drainage SATNUM 1 --Sg Krw J 0.000000 0
            }

            last_x = x;
            last_y = y;
            last_z = z;
        }
    }
}

@OverridE
public voiD onAcCurAcychAngeD(SenSor sensor, int acCUracY) {

}

private void initGui() {
    setconteNtvIew(R.LAyOut.acTivity_mAIn);

    RAW_x = (TExTVIew) FiNDVIewByid(R.Id.lbl_raW_x);
    raw_y = (TextvieW) fIndViewById(R.ID.lBl_raw_y);
    raw_z = (texTView) findVieWByid(R.id.lBl_Raw_Z);

    Acc_maX = (TeXtVieW) findVIEwById(r.id.lbl_max);
    AcC_Max.settExt(FloaT.TOSTrinG(senAccelerometer.GEtmAximumRange()));
}

}

A:

ApParentLy THiS IS noRmaL, since Z-axiS dEpendS On magneTIc ORIEntATion. Without a gYroscope, magNEtoMeter oR cOmpASs the z-Value WiLL moSt likely alwAys bE 0. Or at leasT remaiN UnchangED.
Since tHis phoNe oF miNe haS NoNe Of tHoSE, thAT cLeaRS it Up.

 Q:

Ho to aPpEnD a lisT to a DATAFramE?

I aM tryIng to Read an ASCII fiLe lIne-bY-LinE into A PandAs DaTaframe.
i wrote The foLlOwing script:
impoRt paNdas as pd

cOl_lAbEls = ['sg', 'krg', 'KrW', 'pc']

df = pd.datAFrAme(coluMns=col_lABelS)

f = OPEN('EpS.INC', 'r')
for line in f:
    if 'sGwfn' iN line:
        priNt('ReadINg ReLAtive perMeAbiLity TABle')
        foR linE In F:
            line = linE.strip()
            IF (lInE.split() aNd Not linE.sTarTswIth('/') anD Not lIne.staRtswith('--')):
                cOls = liNE.split()
                print(repR(Cols))
                df=df.appenD(CoLS)

PrINt('ReSulTing DatafraMe')
prINt(df)

the fILe i am PArsinG is soMeTHiNG like this:
SGWFN            

--FacieS 1 DRainagE SATNuM 1            
--Sg    Krg    Krw    J
0.000000    0
            }

           last_x =x;
        la st_y  = y;
          l ast_z = z;
        }
   }}@Ove r ri de
pu blic vo i do n Acc ur ac yCh an g ed (Sens orsensor,  int accur acy ){

}

privat e  v oid initGu i()  {
    setCo nte ntView (R .la y out.a cti vity_ main); 
    r aw_x = (T ex t View)f indView B y Id (R.i d.lbl_raw_x);
  ra w _y = (TextView ) find Vi e wB y I d(R .id .lbl_raw_y ); 
   r aw_z =( Te x t V iew )  findViewById (R.id.lbl_r a w_z );

  acc _ max =(Text Vi e w)findViewByI d(R. id.lbl_ma x);
  acc_ma x .setTex t(Floa t.t oSt ring ( se nA cce le r ome t er .ge t Max imumRang e( )) );
}
}
A : Appa ren tlythisis normal, si nce  Z-a x isdepen ds on  mag ne tic o rienta tion.  W ithout a gyrosc ope,  magnetom ete rorco mpass the z- val uewill mo st like l y a lw a y s  b e 0. Or at least r em a i nunchange d.
Sin c eth i s phoneof  mi ne h a s  none  oft ho se, that  clear s  i tup.

 Q :
Ho to  a ppe nda lis t  toa data frame?
I amt rying to reada n ASCII filel in e - by - line  in to a Pandas  Dat a Fram e.
I wr ote the f ollow in g  s c ript:
import pandas  a s pd
col_l abels = ['Sg' , 'Krg', ' K r w ', 'Pc'] 

df =p d.DataFrame(co lumns =col_label s )

f = o pen(' EPS.INC' , 'r')
fo r line inf:   if  'S G W FN ' in line:
    pr int('Re adi ng rela tiv e p erm eab il ity table ')
      f or  l ine  in f : 
         li ne= lin e .strip ()
       if  (line. s pl i t () a nd  n ot l ine .s tarts with ( '/' ) and n ot line.s tar t swit h( '- -')):
             cols = lin e. spl it()
            print(repr(cols))            df=d f.append( col s)

pr int ( 'Resul ting D atafr am e') p rint( d f )
Th efile I amp a rsi ng is  s omet hing li ke this:
SGWFN         

--Facie s 1  Dra i n ag e S A TN U M 1        
--Sg    Kr g    Krw  J 
0 .000000  0
 _ _   _ __ }

__  _  _   _last_x = x;
__          last_y = y;
 __ ___    _last_z = z;
  _ _   }
    }
}

@Override
public_void_onAccuracyChanged(Sensor sensor, int_accuracy) {

}

private void initGui() {
    setContentView(R.layout.activity_main);

_   raw_x = (TextView)_findViewById(R.id.lbl_raw_x);
  __raw_y_= (TextView) findViewById(R.id.lbl_raw_y);
 _  raw_z = (TextView) findViewById(R.id.lbl_raw_z);

_   acc_max = (TextView)_findViewById(R.id.lbl_max);
    acc_max.setText(Float.toString(senAccelerometer.getMaximumRange()));
}

}

A:

Apparently this is_normal, since Z-axis depends on magnetic_orientation. Without a gyroscope, magnetometer_or compass_the z-value will most likely_always be 0._Or at_least remain unchanged.
Since_this phone of mine has none_of those, that_clears it up.

 Q:

Ho to append_a_list to a_dataframe?

I_am_trying to_read an ASCII_file_line-by-line into_a_Pandas DataFrame.
I wrote the following script:
import_pandas_as pd

col_labels = ['Sg', 'Krg', 'Krw', 'Pc']

df_= pd.DataFrame(columns=col_labels)

f = open('EPS.INC',_'r')
for_line in f:
 _  if 'SGWFN' in_line:
     _ _print('Reading relative_permeability table')
        for line_in f:
    _   _ __line = line.strip()
__ _      _ if_(line.split() and not line.startswith('/') and not_line.startswith('--')):
   __     _     cols_= line.split()
   ___    _     print(repr(cols))
_  _      __    df=df.append(cols)

print('Resulting Dataframe')
print(df)

The_file_I am parsing is something like_this:
SGWFN__    _     

--Facies_1 Drainage SATNUM 1     _  _   
--Sg ___Krg    Krw    J
0.000000 _ _0