@@ -26,7 +26,7 @@ def _load_japan_quakes():
26
26
return pd .read_csv (
27
27
fname ,
28
28
header = 1 ,
29
- delim_whitespace = True ,
29
+ sep = r"\s+" ,
30
30
names = [
31
31
"year" ,
32
32
"month" ,
@@ -52,7 +52,7 @@ def _load_ocean_ridge_points():
52
52
fname = which ("@ridge.txt" , download = "c" )
53
53
return pd .read_csv (
54
54
fname ,
55
- delim_whitespace = True ,
55
+ sep = r"\s+" ,
56
56
names = ["longitude" , "latitude" ],
57
57
skiprows = 1 ,
58
58
comment = ">" ,
@@ -102,9 +102,7 @@ def _load_fractures_compilation():
102
102
the fractures.
103
103
"""
104
104
fname = which ("@fractures_06.txt" , download = "c" )
105
- data = pd .read_csv (
106
- fname , header = None , delim_whitespace = True , names = ["azimuth" , "length" ]
107
- )
105
+ data = pd .read_csv (fname , header = None , sep = r"\s+" , names = ["azimuth" , "length" ])
108
106
return data [["length" , "azimuth" ]]
109
107
110
108
@@ -167,7 +165,7 @@ def _load_rock_sample_compositions():
167
165
fname = which ("@ternary.txt" , download = "c" )
168
166
return pd .read_csv (
169
167
fname ,
170
- delim_whitespace = True ,
168
+ sep = r"\s+" ,
171
169
header = None ,
172
170
names = ["limestone" , "water" , "air" , "permittivity" ],
173
171
)
@@ -183,7 +181,7 @@ def _load_notre_dame_topography():
183
181
The data table with columns "x", "y", and "z".
184
182
"""
185
183
fname = which ("@Table_5_11.txt" , download = "c" )
186
- return pd .read_csv (fname , delim_whitespace = True , header = None , names = ["x" , "y" , "z" ])
184
+ return pd .read_csv (fname , sep = r"\s+" , header = None , names = ["x" , "y" , "z" ])
187
185
188
186
189
187
def _load_maunaloa_co2 ():
@@ -197,7 +195,7 @@ def _load_maunaloa_co2():
197
195
"""
198
196
fname = which ("@MaunaLoa_CO2.txt" , download = "c" )
199
197
return pd .read_csv (
200
- fname , header = None , skiprows = 1 , delim_whitespace = True , names = ["date" , "co2_ppm" ]
198
+ fname , header = None , skiprows = 1 , sep = r"\s+" , names = ["date" , "co2_ppm" ]
201
199
)
202
200
203
201
0 commit comments