Ejemplo n.º 1
0
 def test_data_soil_quantified(self):
     lst = [[0, 0.05, 0.95, 0, 0, 0], [0, 0.05, 0.95, 0, 0, 0]]
     df = pd.DataFrame(
         lst,
         columns=["Gravel", "Sand", "Clay", "Loam", "Peat", "Silt"],
         dtype=float)
     data_s = [["'Kz'", "''"], ["'Kz1'", "''"]]
     df_parsed = ParseBORE.data_soil_quantified(data_s)
     assert_frame_equal(df_parsed, df)
Ejemplo n.º 2
0
 def test_data_soil_quantified(self):
     lst = [[0, 0.05, 0.95, 0, 0, 0], [0, 0.05, 0.95, 0, 0, 0]]
     df = pd.DataFrame(
         lst,
         columns=['Gravel', 'Sand', 'Clay', 'Loam', 'Peat', 'Silt'],
         dtype=float)
     data_s = [["'Kz'", "''"], ["'Kz1'", "''"]]
     df_parsed = ParseBORE.data_soil_quantified(data_s)
     assert_frame_equal(df_parsed, df)