We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faabc31 commit d96e9e1Copy full SHA for d96e9e1
1 file changed
vtools/functions/unit_conversions.py
@@ -318,7 +318,7 @@ def fahrenheit_to_celsius(x):
318
same type as `x`
319
Value(s) in degrees celsius.
320
"""
321
- cfs= np.asarray(x)
+ arr = np.asarray(x.values if isinstance(x, (pd.Series, pd.DataFrame)) else x)
322
out = (arr - 32.0) * (5.0 / 9.0)
323
return out.item() if np.isscalar(x) else _rewrap_like(x, out)
324
@@ -335,7 +335,7 @@ def celsius_to_fahrenheit(x):
335
336
Value(s) in farenheit.
337
338
- arr = np.asarray(x)
339
out = arr * 1.8 + 32.0
340
341
0 commit comments