From 19a229e57688055f9ed79673748eee32054feb9c Mon Sep 17 00:00:00 2001 From: BrandyRussell Date: Sun, 30 Jun 2024 16:17:18 -0500 Subject: [PATCH] Update 05-plotting.md In line 30, numpy.float() is deprecated and the error text suggested using base float(), which seems to work fine. --- _episodes/05-plotting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_episodes/05-plotting.md b/_episodes/05-plotting.md index 24f1764..a83f90d 100644 --- a/_episodes/05-plotting.md +++ b/_episodes/05-plotting.md @@ -27,7 +27,7 @@ One of the most common ways to present scientific data is through graphs or plot > distances = numpy.genfromtxt(fname=distance_file, delimiter=',', dtype='unicode') > headers = distances[0] > data = distances[1:] -> data = data.astype(numpy.float) +> data = data.astype(float) > ~~~ > {: .language-python} {: .callout}