From a772fe099b5afd51a52d81bfd6932638f8b66334 Mon Sep 17 00:00:00 2001 From: natalia-hanna Date: Thu, 30 Jun 2022 14:54:23 +0200 Subject: [PATCH] change of functions.py NH --- functions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions.py b/functions.py index a58bfe7..23d6ef8 100644 --- a/functions.py +++ b/functions.py @@ -21,5 +21,9 @@ def scatter_data(data,variable_1=None,variable_2=None): data.plot.scatter(x=variable_1,y=variable_2) - +def scatter_data(data,variable_1=None,variable_2=None): + if (variable_1 is None) or (variable_2 is None): + print('please provide two variable names!') + return + data.plot.scatter(x=variable_2,y=variable_1) \ No newline at end of file