From 80d592b6ce9058c09dbfa827cd275b1b10c58c71 Mon Sep 17 00:00:00 2001 From: ymlesni Date: Fri, 29 Mar 2024 10:57:24 +0100 Subject: [PATCH] Update sample_app.py --- sample_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample_app.py b/sample_app.py index 508f8e7..4beb718 100644 --- a/sample_app.py +++ b/sample_app.py @@ -20,7 +20,7 @@ def main(numbers_file, multiplier): numbers. """ - numbers = genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False) + numbers = genfromtxt(numbers_file, comments="#", delimiter=",", unpack=False)[:,:-1] multiplied_numbers = numbers * multiplier plt.figure() plt.plot(multiplied_numbers)