From 2ad6d0f9717544bd8cebe48197b2bbc84654c3cf Mon Sep 17 00:00:00 2001 From: kwilgan Date: Thu, 30 Jun 2022 14:50:03 +0200 Subject: [PATCH 1/2] functions.py --- functions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions.py b/functions.py index a58bfe7..7275f61 100644 --- a/functions.py +++ b/functions.py @@ -20,6 +20,10 @@ def scatter_data(data,variable_1=None,variable_2=None): return 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_1+1,y=variable_2) \ No newline at end of file From eaa853d2573805e5cac04a67d674d1013aea990f Mon Sep 17 00:00:00 2001 From: kwilgan Date: Thu, 30 Jun 2022 14:52:22 +0200 Subject: [PATCH 2/2] change of functions.py KW --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index 7275f61..ee678c2 100644 --- a/functions.py +++ b/functions.py @@ -24,6 +24,6 @@ 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_1+1,y=variable_2) + data.plot.scatter(x=variable_1+2,y=variable_2) \ No newline at end of file