@@ -3097,21 +3097,19 @@ def fromstr(self, x):
3097
3097
return dateutil .parser .parse (x )
3098
3098
3099
3099
3100
- defaultformatd = {
3101
- np .bool_ : FormatBool (),
3102
- np .int16 : FormatInt (),
3103
- np .int32 : FormatInt (),
3104
- np .int64 : FormatInt (),
3105
- np .float32 : FormatFloat (),
3106
- np .float64 : FormatFloat (),
3107
- np .object_ : FormatObj (),
3108
- np .string_ : FormatString (),
3109
- }
3110
-
3111
-
3112
3100
@cbook .deprecated ("2.2" )
3113
3101
def get_formatd (r , formatd = None ):
3114
3102
'build a formatd guaranteed to have a key for every dtype name'
3103
+ defaultformatd = {
3104
+ np .bool_ : FormatBool (),
3105
+ np .int16 : FormatInt (),
3106
+ np .int32 : FormatInt (),
3107
+ np .int64 : FormatInt (),
3108
+ np .float32 : FormatFloat (),
3109
+ np .float64 : FormatFloat (),
3110
+ np .object_ : FormatObj (),
3111
+ np .string_ : FormatString ()}
3112
+
3115
3113
if formatd is None :
3116
3114
formatd = dict ()
3117
3115
@@ -3328,8 +3326,8 @@ def newfunc(val, mask, mval):
3328
3326
3329
3327
@cbook .deprecated ('2.2' )
3330
3328
def griddata (x , y , z , xi , yi , interp = 'nn' ):
3331
- """Interpolates from a nonuniformly spaced grid to some other
3332
- grid.
3329
+ """
3330
+ Interpolates from a nonuniformly spaced grid to some other grid.
3333
3331
3334
3332
Fits a surface of the form z = f(`x`, `y`) to the data in the
3335
3333
(usually) nonuniformly spaced vectors (`x`, `y`, `z`), then
0 commit comments