diff --git a/your-project/00_Code_db/.ipynb_checkpoints/Main-checkpoint.ipynb b/your-project/00_Code_db/.ipynb_checkpoints/Main-checkpoint.ipynb new file mode 100644 index 0000000..b18426b --- /dev/null +++ b/your-project/00_Code_db/.ipynb_checkpoints/Main-checkpoint.ipynb @@ -0,0 +1,2417 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "d2fcbbd3", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import re\n", + "from scipy.stats import ttest_1samp, ttest_ind\n", + "import scipy.stats as st\n", + "#pd.set_option('max_rows', 30)" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "06ec481a", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimestampWhy did you buy a reusable bottle?Do you own more than one?What is your bottle's main material ?Do you think reusable water bottles have an environmental impact?Was the environmental aspect the main incentive for you to buy one?Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...)Technical requirements or improvements for reusable water bottles (if you answered yes above)Do you find there are disadvantages to having one ?Disadvantages (if you answered yes above) :Were you influenced by design or practicability ?What is the amount of money you are willing to spend on a reusable water bottle ?Where did you buy your bottle?How often do you use it ?
02021/07/06 12:25:49 AM GMT+1i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
12021/07/06 8:39:41 AM GMT+1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
22021/07/06 8:56:55 AM GMT+1To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
32021/07/06 9:08:36 AM GMT+1For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
42021/07/06 9:31:05 AM GMT+1To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Timestamp \\\n", + "0 2021/07/06 12:25:49 AM GMT+1 \n", + "1 2021/07/06 8:39:41 AM GMT+1 \n", + "2 2021/07/06 8:56:55 AM GMT+1 \n", + "3 2021/07/06 9:08:36 AM GMT+1 \n", + "4 2021/07/06 9:31:05 AM GMT+1 \n", + "\n", + " Why did you buy a reusable bottle? \\\n", + "0 i was travelling \n", + "1 The 1st was an offer, the 2nd was because I wa... \n", + "2 To save the world \n", + "3 For the environment \n", + "4 To drink water during workout \n", + "\n", + " Do you own more than one? What is your bottle's main material ? \\\n", + "0 No Steel \n", + "1 Yes Glass \n", + "2 No Glass \n", + "3 Yes Steel \n", + "4 No Plastic \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Was the environmental aspect the main incentive for you to buy one? \\\n", + "0 No \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 No \n", + "\n", + " Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...) \\\n", + "0 Yes, explain below \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 No \n", + "\n", + " Technical requirements or improvements for reusable water bottles (if you answered yes above) \\\n", + "0 cap size \n", + "1 Must have handle \n", + "2 NaN \n", + "3 Hold hot/cold; lid shape; leak protection \n", + "4 NaN \n", + "\n", + " Do you find there are disadvantages to having one ? \\\n", + "0 No \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 Yes, explain below \n", + "\n", + " Disadvantages (if you answered yes above) : \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Were you influenced by design or practicability ? \\\n", + "0 Practicality (easy to wash and carry,...) \n", + "1 Both \n", + "2 Practicality (easy to wash and carry,...) \n", + "3 Design (it should be pretty) \n", + "4 Both. \n", + "\n", + " What is the amount of money you are willing to spend on a reusable water bottle ? \\\n", + "0 10 to 15 euros \n", + "1 10 to 15 euros \n", + "2 10 to 15 euros \n", + "3 15 to 20 euros \n", + "4 10 to 15 euros \n", + "\n", + " Where did you buy your bottle? How often do you use it ? \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1= pd.read_csv('HAVE_RWB.csv') #Read\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "e1bf53f7", + "metadata": {}, + "outputs": [], + "source": [ + "#DROPING the 'Timestamp' column that comes from the Google form\n", + "file1=file1.drop('Timestamp', axis=1)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "61f0fc40", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why did you buy a reusable bottle?Do you own more than one?What is your bottle's main material ?Do you think reusable water bottles have an environmental impact?Was the environmental aspect the main incentive for you to buy one?Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...)Technical requirements or improvements for reusable water bottles (if you answered yes above)Do you find there are disadvantages to having one ?Disadvantages (if you answered yes above) :Were you influenced by design or practicability ?What is the amount of money you are willing to spend on a reusable water bottle ?Where did you buy your bottle?How often do you use it ?
0i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why did you buy a reusable bottle? \\\n", + "0 i was travelling \n", + "1 The 1st was an offer, the 2nd was because I wa... \n", + "2 To save the world \n", + "3 For the environment \n", + "4 To drink water during workout \n", + "\n", + " Do you own more than one? What is your bottle's main material ? \\\n", + "0 No Steel \n", + "1 Yes Glass \n", + "2 No Glass \n", + "3 Yes Steel \n", + "4 No Plastic \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Was the environmental aspect the main incentive for you to buy one? \\\n", + "0 No \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 No \n", + "\n", + " Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...) \\\n", + "0 Yes, explain below \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 No \n", + "\n", + " Technical requirements or improvements for reusable water bottles (if you answered yes above) \\\n", + "0 cap size \n", + "1 Must have handle \n", + "2 NaN \n", + "3 Hold hot/cold; lid shape; leak protection \n", + "4 NaN \n", + "\n", + " Do you find there are disadvantages to having one ? \\\n", + "0 No \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 Yes, explain below \n", + "\n", + " Disadvantages (if you answered yes above) : \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Were you influenced by design or practicability ? \\\n", + "0 Practicality (easy to wash and carry,...) \n", + "1 Both \n", + "2 Practicality (easy to wash and carry,...) \n", + "3 Design (it should be pretty) \n", + "4 Both. \n", + "\n", + " What is the amount of money you are willing to spend on a reusable water bottle ? \\\n", + "0 10 to 15 euros \n", + "1 10 to 15 euros \n", + "2 10 to 15 euros \n", + "3 15 to 20 euros \n", + "4 10 to 15 euros \n", + "\n", + " Where did you buy your bottle? How often do you use it ? \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1.reset_index(drop=True) #index reset following the drop\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "dd902f5f", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "0 i was travelling No Steel \n", + "1 The 1st was an offer, the 2nd was because I wa... Yes Glass \n", + "2 To save the world No Glass \n", + "3 For the environment Yes Steel \n", + "4 To drink water during workout No Plastic \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "0 Yes No Yes, explain below \n", + "1 Yes Yes Yes, explain below \n", + "2 Yes Yes No \n", + "3 Yes Yes Yes, explain below \n", + "4 Yes No No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "1 Must have handle Yes, explain below \n", + "2 NaN No \n", + "3 Hold hot/cold; lid shape; leak protection Yes, explain below \n", + "4 NaN Yes, explain below \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both. 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#RENAMING the column names from file1 - renaming all columns method\n", + "file1.columns=['Why_buy','Own_plus','Material','Env_impact','Env_incentive','YN_technical','Detail_technical','YN_disadvantage','Detail_disadvantage','Design_VS_Pract','Price_Range','Bought_Where','Use']\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "e2f9874d", + "metadata": {}, + "outputs": [], + "source": [ + "def tonumb (row): # function that change the string \"Yes\" into 1 (\"No\" becomes 0) ##This is to do the hypothesis testing \n", + " if row =='Yes':\n", + " return 1\n", + " else:\n", + " return 0" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "ec6a8cd9", + "metadata": {}, + "outputs": [], + "source": [ + "file1['Own_plus']= file1['Own_plus'].apply(tonumb) #applying the function to the row in the column" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "39daf327", + "metadata": {}, + "outputs": [], + "source": [ + "file1['Env_incentive']= file1['Env_incentive'].apply(tonumb) #applying the function to the row in the column" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "c7af6c1f", + "metadata": {}, + "outputs": [], + "source": [ + "###########CLEANING THE DATA####################\n", + "\n", + "#1) Uniformizing the Yes answers (whole dataframe)\n", + "file1=file1.replace(to_replace =\"Yes, explain below\", value =\"Yes\")" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "1832e984", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + ":2: FutureWarning: The default value of regex will change from True to False in a future version.\n", + " file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"Both.\",\"Both\")\n" + ] + } + ], + "source": [ + "#2)Removing some unwanted punctuation\n", + "file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"Both.\",\"Both\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "9f998086", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travelling0SteelYes0Yescap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...1GlassYes1YesMust have handleYesGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the world0GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environment1SteelYes1YesHold hot/cold; lid shape; leak protectionYesCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workout0PlasticYes0NoNaNYesWater temperature is usually not coldBoth10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "0 i was travelling 0 Steel \n", + "1 The 1st was an offer, the 2nd was because I wa... 1 Glass \n", + "2 To save the world 0 Glass \n", + "3 For the environment 1 Steel \n", + "4 To drink water during workout 0 Plastic \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "0 Yes 0 Yes \n", + "1 Yes 1 Yes \n", + "2 Yes 1 No \n", + "3 Yes 1 Yes \n", + "4 Yes 0 No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "1 Must have handle Yes \n", + "2 NaN No \n", + "3 Hold hot/cold; lid shape; leak protection Yes \n", + "4 NaN Yes \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"/W\",\"\")\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "25c0e771", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimestampWhen you are at work/school and/or travelling how do you keep hydrated?Is there a particular reason for you not to have a reusable bottle?Do you consider getting a reusable bottle, in the future?If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well?If you were to buy a reusable bottle, which one would you consider?Do you think reusable water bottles have an environmental impact?Would the environmental impact be an incentive for you to buy one?What is the amount of money you would be willing to spend on a reusable water bottle ?Are you more influenced by design or practicability ?If you were to buy one, where would you buy it?
02021/07/06 8:23:24 AM GMT+1I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
12021/07/06 8:39:27 AM GMT+1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
22021/07/06 9:05:32 AM GMT+1I buy water botlles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
32021/07/06 12:24:59 PM GMT+1Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
42021/07/06 1:03:42 PM GMT+1YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
52021/07/06 1:04:07 PM GMT+1tap waterdo not like plastic nor glassMaybeNoSteelYesYes10 to 15 eurosPracticalitySupermarket
62021/07/06 4:37:25 PM GMT+1ususaly bring a bottle with me for a whole wee...i should buy itYesNoSteelYesYes10 to 15 eurosPracticalityOrganic / Eco-friendly shop
72021/07/06 4:55:33 PM GMT+1FountainLost itMaybeNoOther (bamboo, aluminium, ...)YesYes10 to 15 eurosDesignOnline
82021/07/07 3:09:47 PM GMT+1I always carry with me a reusable bottle.I always carry with me a reusable bottle.YesYesSteelYesYes20 to 30 eurosDesignOnline
\n", + "
" + ], + "text/plain": [ + " Timestamp \\\n", + "0 2021/07/06 8:23:24 AM GMT+1 \n", + "1 2021/07/06 8:39:27 AM GMT+1 \n", + "2 2021/07/06 9:05:32 AM GMT+1 \n", + "3 2021/07/06 12:24:59 PM GMT+1 \n", + "4 2021/07/06 1:03:42 PM GMT+1 \n", + "5 2021/07/06 1:04:07 PM GMT+1 \n", + "6 2021/07/06 4:37:25 PM GMT+1 \n", + "7 2021/07/06 4:55:33 PM GMT+1 \n", + "8 2021/07/07 3:09:47 PM GMT+1 \n", + "\n", + " When you are at work/school and/or travelling how do you keep hydrated? \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water botlles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "5 tap water \n", + "6 ususaly bring a bottle with me for a whole wee... \n", + "7 Fountain \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Is there a particular reason for you not to have a reusable bottle? \\\n", + "0 Not any but maybe just having less things to c... \n", + "1 I lose them \n", + "2 Just not my thing. \n", + "3 No \n", + "4 I have one bit it's to havy. Need to replace it \n", + "5 do not like plastic nor glass \n", + "6 i should buy it \n", + "7 Lost it \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Do you consider getting a reusable bottle, in the future? \\\n", + "0 Maybe \n", + "1 Yes \n", + "2 Maybe \n", + "3 Yes \n", + "4 Yes \n", + "5 Maybe \n", + "6 Yes \n", + "7 Maybe \n", + "8 Yes \n", + "\n", + " If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well? \\\n", + "0 Undecided \n", + "1 Yes \n", + "2 No \n", + "3 No \n", + "4 Undecided \n", + "5 No \n", + "6 No \n", + "7 No \n", + "8 Yes \n", + "\n", + " If you were to buy a reusable bottle, which one would you consider? \\\n", + "0 Steel \n", + "1 Glass \n", + "2 Glass \n", + "3 Glass \n", + "4 Other (bamboo, aluminium, ...) \n", + "5 Steel \n", + "6 Steel \n", + "7 Other (bamboo, aluminium, ...) \n", + "8 Steel \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "5 Yes \n", + "6 Yes \n", + "7 Yes \n", + "8 Yes \n", + "\n", + " Would the environmental impact be an incentive for you to buy one? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "5 Yes \n", + "6 Yes \n", + "7 Yes \n", + "8 Yes \n", + "\n", + " What is the amount of money you would be willing to spend on a reusable water bottle ? \\\n", + "0 15 to 20 euros \n", + "1 15 to 20 euros \n", + "2 10 to 15 euros \n", + "3 10 to 15 euros \n", + "4 10 to 15 euros \n", + "5 10 to 15 euros \n", + "6 10 to 15 euros \n", + "7 10 to 15 euros \n", + "8 20 to 30 euros \n", + "\n", + " Are you more influenced by design or practicability ? \\\n", + "0 Practicality \n", + "1 Practicality \n", + "2 Practicality \n", + "3 Practicality \n", + "4 Practicality \n", + "5 Practicality \n", + "6 Practicality \n", + "7 Design \n", + "8 Design \n", + "\n", + " If you were to buy one, where would you buy it? \n", + "0 Supermarket \n", + "1 Online \n", + "2 Sports shop \n", + "3 Supermarket \n", + "4 Supermarket \n", + "5 Supermarket \n", + "6 Organic / Eco-friendly shop \n", + "7 Online \n", + "8 Online " + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file2= pd.read_csv('HAVE_NOT_RWB.csv') #Read\n", + "file2" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "8d32093f", + "metadata": {}, + "outputs": [], + "source": [ + "#DROPING the 'Timestamp' column that comes from the Google form\n", + "file2=file2.drop('Timestamp', axis=1)" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "d7df4793", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
When you are at work/school and/or travelling how do you keep hydrated?Is there a particular reason for you not to have a reusable bottle?Do you consider getting a reusable bottle, in the future?If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well?If you were to buy a reusable bottle, which one would you consider?Do you think reusable water bottles have an environmental impact?Would the environmental impact be an incentive for you to buy one?What is the amount of money you would be willing to spend on a reusable water bottle ?Are you more influenced by design or practicability ?If you were to buy one, where would you buy it?
0I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
2I buy water botlles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
3Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
4YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
\n", + "
" + ], + "text/plain": [ + " When you are at work/school and/or travelling how do you keep hydrated? \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water botlles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "\n", + " Is there a particular reason for you not to have a reusable bottle? \\\n", + "0 Not any but maybe just having less things to c... \n", + "1 I lose them \n", + "2 Just not my thing. \n", + "3 No \n", + "4 I have one bit it's to havy. Need to replace it \n", + "\n", + " Do you consider getting a reusable bottle, in the future? \\\n", + "0 Maybe \n", + "1 Yes \n", + "2 Maybe \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well? \\\n", + "0 Undecided \n", + "1 Yes \n", + "2 No \n", + "3 No \n", + "4 Undecided \n", + "\n", + " If you were to buy a reusable bottle, which one would you consider? \\\n", + "0 Steel \n", + "1 Glass \n", + "2 Glass \n", + "3 Glass \n", + "4 Other (bamboo, aluminium, ...) \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Would the environmental impact be an incentive for you to buy one? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " What is the amount of money you would be willing to spend on a reusable water bottle ? \\\n", + "0 15 to 20 euros \n", + "1 15 to 20 euros \n", + "2 10 to 15 euros \n", + "3 10 to 15 euros \n", + "4 10 to 15 euros \n", + "\n", + " Are you more influenced by design or practicability ? \\\n", + "0 Practicality \n", + "1 Practicality \n", + "2 Practicality \n", + "3 Practicality \n", + "4 Practicality \n", + "\n", + " If you were to buy one, where would you buy it? \n", + "0 Supermarket \n", + "1 Online \n", + "2 Sports shop \n", + "3 Supermarket \n", + "4 Supermarket " + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file2.reset_index(drop=True) #index reset following the drop\n", + "file2.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "90a2dc79", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
No_Bot_MethodReasonFuture_AcquisitionPeer_pressureMaterialEnv_impactEnv_incentivePrice_RangeDesign_VS_PractBought_Where
0I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
2I buy water botlles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
3Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
4YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
5tap waterdo not like plastic nor glassMaybeNoSteelYesYes10 to 15 eurosPracticalitySupermarket
6ususaly bring a bottle with me for a whole wee...i should buy itYesNoSteelYesYes10 to 15 eurosPracticalityOrganic / Eco-friendly shop
7FountainLost itMaybeNoOther (bamboo, aluminium, ...)YesYes10 to 15 eurosDesignOnline
8I always carry with me a reusable bottle.I always carry with me a reusable bottle.YesYesSteelYesYes20 to 30 eurosDesignOnline
\n", + "
" + ], + "text/plain": [ + " No_Bot_Method \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water botlles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "5 tap water \n", + "6 ususaly bring a bottle with me for a whole wee... \n", + "7 Fountain \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Reason Future_Acquisition \\\n", + "0 Not any but maybe just having less things to c... Maybe \n", + "1 I lose them Yes \n", + "2 Just not my thing. Maybe \n", + "3 No Yes \n", + "4 I have one bit it's to havy. Need to replace it Yes \n", + "5 do not like plastic nor glass Maybe \n", + "6 i should buy it Yes \n", + "7 Lost it Maybe \n", + "8 I always carry with me a reusable bottle. Yes \n", + "\n", + " Peer_pressure Material Env_impact Env_incentive \\\n", + "0 Undecided Steel Yes Yes \n", + "1 Yes Glass Yes Yes \n", + "2 No Glass Yes Yes \n", + "3 No Glass Yes Yes \n", + "4 Undecided Other (bamboo, aluminium, ...) Yes Yes \n", + "5 No Steel Yes Yes \n", + "6 No Steel Yes Yes \n", + "7 No Other (bamboo, aluminium, ...) Yes Yes \n", + "8 Yes Steel Yes Yes \n", + "\n", + " Price_Range Design_VS_Pract Bought_Where \n", + "0 15 to 20 euros Practicality Supermarket \n", + "1 15 to 20 euros Practicality Online \n", + "2 10 to 15 euros Practicality Sports shop \n", + "3 10 to 15 euros Practicality Supermarket \n", + "4 10 to 15 euros Practicality Supermarket \n", + "5 10 to 15 euros Practicality Supermarket \n", + "6 10 to 15 euros Practicality Organic / Eco-friendly shop \n", + "7 10 to 15 euros Design Online \n", + "8 20 to 30 euros Design Online " + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#RENAMING the column names from file2\n", + "file2.columns=['No_Bot_Method','Reason','Future_Acquisition','Peer_pressure','Material','Env_impact','Env_incentive','Price_Range','Design_VS_Pract','Bought_Where']\n", + "file2" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "c65bf33e", + "metadata": {}, + "outputs": [], + "source": [ + "#spelling correction for later labels\n", + "file2['No_Bot_Method']=file2['No_Bot_Method'].str.replace(\"botlles\",\"bottles\")" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "7bbee079", + "metadata": {}, + "outputs": [], + "source": [ + "file1.to_csv('HAVE_RWB_clean.csv') # to import to TABLEAU " + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "ac202a35", + "metadata": {}, + "outputs": [], + "source": [ + "file2.to_csv('HAVE_NOT_RWB_clean.csv') # to import to TABLEAU " + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "5ac64b74", + "metadata": {}, + "outputs": [], + "source": [ + "#######TESTING the hypothesis' sur Database 1 ####################" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "7c2a6218", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travelling0SteelYes0Yescap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
3For the environment1SteelYes1YesHold hot/cold; lid shape; leak protectionYesCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workout0PlasticYes0NoNaNYesWater temperature is usually not coldBoth10 to 15 eurosSports shopOn a daily basis
5TO save plastic0PlasticYes1NoNaNNoNaNDesign (it should be pretty)10 to 15 eurosSupermarketOn a daily basis
6reduce waste, save money1PlasticNo0NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
8To reduce plastic waste, and keep water cool f...1Other (bamboo, aluminium, ...)Yes1Yesbeing able to mantain liquids cold or hot for ...NoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
11Sustainability0SteelYes1NoNaNYesIf you go to a place with no way to refill it,...Both20 to 30 eurosOnlineOn a daily basis
12it is beautiful and I don't need to buy more b...1SteelYes1NoNaNYesyou need to carry it always with youDesign (it should be pretty)10 to 15 eurosIt was a giftOn a daily basis
13To not waste plastic and because they are prac...1SteelYes1YesI know they are just developing one with uv li...YesJust if you are not used to, you can forget itPracticality (easy to wash and carry,...)15 to 20 eurosOnlineOn a daily basis
14to stay hydrated1PlasticYes0NoNaNYesI tend to forget bringing it...Practicality (easy to wash and carry,...)10 to 15 eurosIt was a giftOn a daily basis
15Primarily, because of the environmental impact...1SteelYes1YesDefinitely, yes to thermos so it keeps water a...YesIt is a little bit hard to clean, so i would s...Practicality (easy to wash and carry,...)20 to 30 eurosOnlineOn a daily basis
16Because it helps the planet0SteelYes1YesSpecially mold. Sometimes materials are not mo...NoNaNDesign (it should be pretty)10 to 15 eurosIt was a giftOn a daily basis
18I mostly drink tap water so it makes sense to ...0SteelNo0NoNaNYesHeavy, difficult to keep water coldPracticality (easy to wash and carry,...)10 to 15 eurosIt was a giftOn a daily basis
19to avoid buying plastic bottles1SteelYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
20sustainable reasons0Other (bamboo, aluminium, ...)Yes1Yeshold cold/hotNoNaNPracticality (easy to wash and carry,...)15 to 20 eurosOnlineOn a daily basis
21one time cost and reduce plastic0SteelYes1Yessteel is better than plasticNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
22Because I think its important1Other (bamboo, aluminium, ...)Yes1NoNaNNoNaNDesign (it should be pretty)15 to 20 eurosOnlineOn a daily basis
23I like to have always a bottle with me and not...0SteelYes0YesIn my steel bottle im starting to see spots of...NoNaNPracticality (easy to wash and carry,...)20 to 30 eurosOnlineOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus \\\n", + "0 i was travelling 0 \n", + "3 For the environment 1 \n", + "4 To drink water during workout 0 \n", + "5 TO save plastic 0 \n", + "6 reduce waste, save money 1 \n", + "8 To reduce plastic waste, and keep water cool f... 1 \n", + "11 Sustainability 0 \n", + "12 it is beautiful and I don't need to buy more b... 1 \n", + "13 To not waste plastic and because they are prac... 1 \n", + "14 to stay hydrated 1 \n", + "15 Primarily, because of the environmental impact... 1 \n", + "16 Because it helps the planet 0 \n", + "18 I mostly drink tap water so it makes sense to ... 0 \n", + "19 to avoid buying plastic bottles 1 \n", + "20 sustainable reasons 0 \n", + "21 one time cost and reduce plastic 0 \n", + "22 Because I think its important 1 \n", + "23 I like to have always a bottle with me and not... 0 \n", + "\n", + " Material Env_impact Env_incentive YN_technical \\\n", + "0 Steel Yes 0 Yes \n", + "3 Steel Yes 1 Yes \n", + "4 Plastic Yes 0 No \n", + "5 Plastic Yes 1 No \n", + "6 Plastic No 0 No \n", + "8 Other (bamboo, aluminium, ...) Yes 1 Yes \n", + "11 Steel Yes 1 No \n", + "12 Steel Yes 1 No \n", + "13 Steel Yes 1 Yes \n", + "14 Plastic Yes 0 No \n", + "15 Steel Yes 1 Yes \n", + "16 Steel Yes 1 Yes \n", + "18 Steel No 0 No \n", + "19 Steel Yes 1 No \n", + "20 Other (bamboo, aluminium, ...) Yes 1 Yes \n", + "21 Steel Yes 1 Yes \n", + "22 Other (bamboo, aluminium, ...) Yes 1 No \n", + "23 Steel Yes 0 Yes \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "3 Hold hot/cold; lid shape; leak protection Yes \n", + "4 NaN Yes \n", + "5 NaN No \n", + "6 NaN No \n", + "8 being able to mantain liquids cold or hot for ... No \n", + "11 NaN Yes \n", + "12 NaN Yes \n", + "13 I know they are just developing one with uv li... Yes \n", + "14 NaN Yes \n", + "15 Definitely, yes to thermos so it keeps water a... Yes \n", + "16 Specially mold. Sometimes materials are not mo... No \n", + "18 NaN Yes \n", + "19 NaN No \n", + "20 hold cold/hot No \n", + "21 steel is better than plastic No \n", + "22 NaN No \n", + "23 In my steel bottle im starting to see spots of... No \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "5 NaN \n", + "6 NaN \n", + "8 NaN \n", + "11 If you go to a place with no way to refill it,... \n", + "12 you need to carry it always with you \n", + "13 Just if you are not used to, you can forget it \n", + "14 I tend to forget bringing it... \n", + "15 It is a little bit hard to clean, so i would s... \n", + "16 NaN \n", + "18 Heavy, difficult to keep water cold \n", + "19 NaN \n", + "20 NaN \n", + "21 NaN \n", + "22 NaN \n", + "23 NaN \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both 10 to 15 euros \n", + "5 Design (it should be pretty) 10 to 15 euros \n", + "6 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "8 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "11 Both 20 to 30 euros \n", + "12 Design (it should be pretty) 10 to 15 euros \n", + "13 Practicality (easy to wash and carry,...) 15 to 20 euros \n", + "14 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "15 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "16 Design (it should be pretty) 10 to 15 euros \n", + "18 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "19 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "20 Practicality (easy to wash and carry,...) 15 to 20 euros \n", + "21 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "22 Design (it should be pretty) 15 to 20 euros \n", + "23 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis \n", + "5 Supermarket On a daily basis \n", + "6 Sports shop On a daily basis \n", + "8 Sports shop On a daily basis \n", + "11 Online On a daily basis \n", + "12 It was a gift On a daily basis \n", + "13 Online On a daily basis \n", + "14 It was a gift On a daily basis \n", + "15 Online On a daily basis \n", + "16 It was a gift On a daily basis \n", + "18 It was a gift On a daily basis \n", + "19 Online On a daily basis \n", + "20 Online On a daily basis \n", + "21 Online On a daily basis \n", + "22 Online On a daily basis \n", + "23 Online On a daily basis " + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "elseglass=file1[file1['Material']!='Glass']\n", + "elseglass" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "id": "b28c7094", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
1The 1st was an offer, the 2nd was because I wa...1GlassYes1YesMust have handleYesGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the world0GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
7It is more practical.1GlassYes0NoNaNNoNaNPracticality (easy to wash and carry,...)20 to 30 eurosSupermarketOn a daily basis
9to save the environment, or to help at least1GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSupermarketOn a daily basis
10It's made of Glass0GlassYes1YesGlass material to not change water molecules t...YesCan breakPracticality (easy to wash and carry,...)10 to 15 eurosOrganic / Eco-friendly shopOn a daily basis
17To use it when I do sports1GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "1 The 1st was an offer, the 2nd was because I wa... 1 Glass \n", + "2 To save the world 0 Glass \n", + "7 It is more practical. 1 Glass \n", + "9 to save the environment, or to help at least 1 Glass \n", + "10 It's made of Glass 0 Glass \n", + "17 To use it when I do sports 1 Glass \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "1 Yes 1 Yes \n", + "2 Yes 1 No \n", + "7 Yes 0 No \n", + "9 Yes 1 No \n", + "10 Yes 1 Yes \n", + "17 Yes 1 No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "1 Must have handle Yes \n", + "2 NaN No \n", + "7 NaN No \n", + "9 NaN No \n", + "10 Glass material to not change water molecules t... Yes \n", + "17 NaN No \n", + "\n", + " Detail_disadvantage \\\n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "7 NaN \n", + "9 NaN \n", + "10 Can break \n", + "17 NaN \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "7 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "9 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "10 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "17 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "7 Supermarket On a daily basis \n", + "9 Supermarket On a daily basis \n", + "10 Organic / Eco-friendly shop On a daily basis \n", + "17 Online On a daily basis " + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "glassf=file1[file1['Material']=='Glass'] # Selecting and adding to new df Glass rows.\n", + "glassf" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "id": "07dcf3fb", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Ttest_indResult(statistic=0.8246211251235324, pvalue=0.42853661643356133)" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#H1 --- Are the people who buy glass bottle concerned by the environment incentive? \n", + "#H0 ---Does having environmental concerns equates for individuals to possess a glass bottle?\n", + "st.ttest_ind(glassf['Env_incentive'],elseglass['Env_incentive'], equal_var=False)\n", + "#Answer : In this sample, we cannot reject the hypothesis" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "id": "b3f3749d", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Ttest_indResult(statistic=0.6852833426171309, pvalue=0.511252493307571)" + ] + }, + "execution_count": 23, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#H0--- Is the fact that people have a glass bottle, related to having more than one bottle?\n", + "#H1---Do people who have a glass bottle own more than one reusable water?\n", + "st.ttest_ind(glassf['Own_plus'], elseglass['Own_plus'], equal_var=False)\n", + "#having more bottles is not different from glass and non glass bottle owners #we cannot reject the H0 on this sample" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e77b6619", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.8.8" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/your-project/00_Code_db/.ipynb_checkpoints/Main_LF-checkpoint.ipynb b/your-project/00_Code_db/.ipynb_checkpoints/Main_LF-checkpoint.ipynb new file mode 100644 index 0000000..cad35f3 --- /dev/null +++ b/your-project/00_Code_db/.ipynb_checkpoints/Main_LF-checkpoint.ipynb @@ -0,0 +1,2417 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "d2fcbbd3", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import re\n", + "from scipy.stats import ttest_1samp, ttest_ind\n", + "import scipy.stats as st\n", + "#pd.set_option('max_rows', 30)" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "06ec481a", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimestampWhy did you buy a reusable bottle?Do you own more than one?What is your bottle's main material ?Do you think reusable water bottles have an environmental impact?Was the environmental aspect the main incentive for you to buy one?Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...)Technical requirements or improvements for reusable water bottles (if you answered yes above)Do you find there are disadvantages to having one ?Disadvantages (if you answered yes above) :Were you influenced by design or practicability ?What is the amount of money you are willing to spend on a reusable water bottle ?Where did you buy your bottle?How often do you use it ?
02021/07/06 12:25:49 AM GMT+1i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
12021/07/06 8:39:41 AM GMT+1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
22021/07/06 8:56:55 AM GMT+1To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
32021/07/06 9:08:36 AM GMT+1For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
42021/07/06 9:31:05 AM GMT+1To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Timestamp \\\n", + "0 2021/07/06 12:25:49 AM GMT+1 \n", + "1 2021/07/06 8:39:41 AM GMT+1 \n", + "2 2021/07/06 8:56:55 AM GMT+1 \n", + "3 2021/07/06 9:08:36 AM GMT+1 \n", + "4 2021/07/06 9:31:05 AM GMT+1 \n", + "\n", + " Why did you buy a reusable bottle? \\\n", + "0 i was travelling \n", + "1 The 1st was an offer, the 2nd was because I wa... \n", + "2 To save the world \n", + "3 For the environment \n", + "4 To drink water during workout \n", + "\n", + " Do you own more than one? What is your bottle's main material ? \\\n", + "0 No Steel \n", + "1 Yes Glass \n", + "2 No Glass \n", + "3 Yes Steel \n", + "4 No Plastic \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Was the environmental aspect the main incentive for you to buy one? \\\n", + "0 No \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 No \n", + "\n", + " Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...) \\\n", + "0 Yes, explain below \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 No \n", + "\n", + " Technical requirements or improvements for reusable water bottles (if you answered yes above) \\\n", + "0 cap size \n", + "1 Must have handle \n", + "2 NaN \n", + "3 Hold hot/cold; lid shape; leak protection \n", + "4 NaN \n", + "\n", + " Do you find there are disadvantages to having one ? \\\n", + "0 No \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 Yes, explain below \n", + "\n", + " Disadvantages (if you answered yes above) : \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Were you influenced by design or practicability ? \\\n", + "0 Practicality (easy to wash and carry,...) \n", + "1 Both \n", + "2 Practicality (easy to wash and carry,...) \n", + "3 Design (it should be pretty) \n", + "4 Both. \n", + "\n", + " What is the amount of money you are willing to spend on a reusable water bottle ? \\\n", + "0 10 to 15 euros \n", + "1 10 to 15 euros \n", + "2 10 to 15 euros \n", + "3 15 to 20 euros \n", + "4 10 to 15 euros \n", + "\n", + " Where did you buy your bottle? How often do you use it ? \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1= pd.read_csv('HAVE_RWB.csv') #Read\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "e1bf53f7", + "metadata": {}, + "outputs": [], + "source": [ + "#DROPING the 'Timestamp' column that comes from the Google form\n", + "file1=file1.drop('Timestamp', axis=1)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "61f0fc40", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why did you buy a reusable bottle?Do you own more than one?What is your bottle's main material ?Do you think reusable water bottles have an environmental impact?Was the environmental aspect the main incentive for you to buy one?Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...)Technical requirements or improvements for reusable water bottles (if you answered yes above)Do you find there are disadvantages to having one ?Disadvantages (if you answered yes above) :Were you influenced by design or practicability ?What is the amount of money you are willing to spend on a reusable water bottle ?Where did you buy your bottle?How often do you use it ?
0i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why did you buy a reusable bottle? \\\n", + "0 i was travelling \n", + "1 The 1st was an offer, the 2nd was because I wa... \n", + "2 To save the world \n", + "3 For the environment \n", + "4 To drink water during workout \n", + "\n", + " Do you own more than one? What is your bottle's main material ? \\\n", + "0 No Steel \n", + "1 Yes Glass \n", + "2 No Glass \n", + "3 Yes Steel \n", + "4 No Plastic \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Was the environmental aspect the main incentive for you to buy one? \\\n", + "0 No \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 No \n", + "\n", + " Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...) \\\n", + "0 Yes, explain below \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 No \n", + "\n", + " Technical requirements or improvements for reusable water bottles (if you answered yes above) \\\n", + "0 cap size \n", + "1 Must have handle \n", + "2 NaN \n", + "3 Hold hot/cold; lid shape; leak protection \n", + "4 NaN \n", + "\n", + " Do you find there are disadvantages to having one ? \\\n", + "0 No \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 Yes, explain below \n", + "\n", + " Disadvantages (if you answered yes above) : \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Were you influenced by design or practicability ? \\\n", + "0 Practicality (easy to wash and carry,...) \n", + "1 Both \n", + "2 Practicality (easy to wash and carry,...) \n", + "3 Design (it should be pretty) \n", + "4 Both. \n", + "\n", + " What is the amount of money you are willing to spend on a reusable water bottle ? \\\n", + "0 10 to 15 euros \n", + "1 10 to 15 euros \n", + "2 10 to 15 euros \n", + "3 15 to 20 euros \n", + "4 10 to 15 euros \n", + "\n", + " Where did you buy your bottle? How often do you use it ? \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1.reset_index(drop=True) #index reset following the drop\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "dd902f5f", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "0 i was travelling No Steel \n", + "1 The 1st was an offer, the 2nd was because I wa... Yes Glass \n", + "2 To save the world No Glass \n", + "3 For the environment Yes Steel \n", + "4 To drink water during workout No Plastic \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "0 Yes No Yes, explain below \n", + "1 Yes Yes Yes, explain below \n", + "2 Yes Yes No \n", + "3 Yes Yes Yes, explain below \n", + "4 Yes No No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "1 Must have handle Yes, explain below \n", + "2 NaN No \n", + "3 Hold hot/cold; lid shape; leak protection Yes, explain below \n", + "4 NaN Yes, explain below \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both. 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#RENAMING the column names from file1 - renaming all columns method\n", + "file1.columns=['Why_buy','Own_plus','Material','Env_impact','Env_incentive','YN_technical','Detail_technical','YN_disadvantage','Detail_disadvantage','Design_VS_Pract','Price_Range','Bought_Where','Use']\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "e2f9874d", + "metadata": {}, + "outputs": [], + "source": [ + "def tonumb (row): # function that change the string \"Yes\" into 1 (\"No\" becomes 0) ##This is to do the hypothesis testing \n", + " if row =='Yes':\n", + " return 1\n", + " else:\n", + " return 0" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "ec6a8cd9", + "metadata": {}, + "outputs": [], + "source": [ + "file1['Own_plus']= file1['Own_plus'].apply(tonumb) #applying the function to the row in the column" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "39daf327", + "metadata": {}, + "outputs": [], + "source": [ + "file1['Env_incentive']= file1['Env_incentive'].apply(tonumb) #applying the function to the row in the column" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "c7af6c1f", + "metadata": {}, + "outputs": [], + "source": [ + "###########CLEANING THE DATA####################\n", + "\n", + "#1) Uniformizing the Yes answers (whole dataframe)\n", + "file1=file1.replace(to_replace =\"Yes, explain below\", value =\"Yes\")" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "1832e984", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + ":2: FutureWarning: The default value of regex will change from True to False in a future version.\n", + " file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"Both.\",\"Both\")\n" + ] + } + ], + "source": [ + "#2)Removing some unwanted punctuation\n", + "file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"Both.\",\"Both\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "9f998086", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travelling0SteelYes0Yescap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...1GlassYes1YesMust have handleYesGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the world0GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environment1SteelYes1YesHold hot/cold; lid shape; leak protectionYesCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workout0PlasticYes0NoNaNYesWater temperature is usually not coldBoth10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "0 i was travelling 0 Steel \n", + "1 The 1st was an offer, the 2nd was because I wa... 1 Glass \n", + "2 To save the world 0 Glass \n", + "3 For the environment 1 Steel \n", + "4 To drink water during workout 0 Plastic \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "0 Yes 0 Yes \n", + "1 Yes 1 Yes \n", + "2 Yes 1 No \n", + "3 Yes 1 Yes \n", + "4 Yes 0 No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "1 Must have handle Yes \n", + "2 NaN No \n", + "3 Hold hot/cold; lid shape; leak protection Yes \n", + "4 NaN Yes \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"/W\",\"\")\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "25c0e771", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimestampWhen you are at work/school and/or travelling how do you keep hydrated?Is there a particular reason for you not to have a reusable bottle?Do you consider getting a reusable bottle, in the future?If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well?If you were to buy a reusable bottle, which one would you consider?Do you think reusable water bottles have an environmental impact?Would the environmental impact be an incentive for you to buy one?What is the amount of money you would be willing to spend on a reusable water bottle ?Are you more influenced by design or practicability ?If you were to buy one, where would you buy it?
02021/07/06 8:23:24 AM GMT+1I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
12021/07/06 8:39:27 AM GMT+1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
22021/07/06 9:05:32 AM GMT+1I buy water botlles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
32021/07/06 12:24:59 PM GMT+1Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
42021/07/06 1:03:42 PM GMT+1YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
52021/07/06 1:04:07 PM GMT+1tap waterdo not like plastic nor glassMaybeNoSteelYesYes10 to 15 eurosPracticalitySupermarket
62021/07/06 4:37:25 PM GMT+1ususaly bring a bottle with me for a whole wee...i should buy itYesNoSteelYesYes10 to 15 eurosPracticalityOrganic / Eco-friendly shop
72021/07/06 4:55:33 PM GMT+1FountainLost itMaybeNoOther (bamboo, aluminium, ...)YesYes10 to 15 eurosDesignOnline
82021/07/07 3:09:47 PM GMT+1I always carry with me a reusable bottle.I always carry with me a reusable bottle.YesYesSteelYesYes20 to 30 eurosDesignOnline
\n", + "
" + ], + "text/plain": [ + " Timestamp \\\n", + "0 2021/07/06 8:23:24 AM GMT+1 \n", + "1 2021/07/06 8:39:27 AM GMT+1 \n", + "2 2021/07/06 9:05:32 AM GMT+1 \n", + "3 2021/07/06 12:24:59 PM GMT+1 \n", + "4 2021/07/06 1:03:42 PM GMT+1 \n", + "5 2021/07/06 1:04:07 PM GMT+1 \n", + "6 2021/07/06 4:37:25 PM GMT+1 \n", + "7 2021/07/06 4:55:33 PM GMT+1 \n", + "8 2021/07/07 3:09:47 PM GMT+1 \n", + "\n", + " When you are at work/school and/or travelling how do you keep hydrated? \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water botlles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "5 tap water \n", + "6 ususaly bring a bottle with me for a whole wee... \n", + "7 Fountain \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Is there a particular reason for you not to have a reusable bottle? \\\n", + "0 Not any but maybe just having less things to c... \n", + "1 I lose them \n", + "2 Just not my thing. \n", + "3 No \n", + "4 I have one bit it's to havy. Need to replace it \n", + "5 do not like plastic nor glass \n", + "6 i should buy it \n", + "7 Lost it \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Do you consider getting a reusable bottle, in the future? \\\n", + "0 Maybe \n", + "1 Yes \n", + "2 Maybe \n", + "3 Yes \n", + "4 Yes \n", + "5 Maybe \n", + "6 Yes \n", + "7 Maybe \n", + "8 Yes \n", + "\n", + " If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well? \\\n", + "0 Undecided \n", + "1 Yes \n", + "2 No \n", + "3 No \n", + "4 Undecided \n", + "5 No \n", + "6 No \n", + "7 No \n", + "8 Yes \n", + "\n", + " If you were to buy a reusable bottle, which one would you consider? \\\n", + "0 Steel \n", + "1 Glass \n", + "2 Glass \n", + "3 Glass \n", + "4 Other (bamboo, aluminium, ...) \n", + "5 Steel \n", + "6 Steel \n", + "7 Other (bamboo, aluminium, ...) \n", + "8 Steel \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "5 Yes \n", + "6 Yes \n", + "7 Yes \n", + "8 Yes \n", + "\n", + " Would the environmental impact be an incentive for you to buy one? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "5 Yes \n", + "6 Yes \n", + "7 Yes \n", + "8 Yes \n", + "\n", + " What is the amount of money you would be willing to spend on a reusable water bottle ? \\\n", + "0 15 to 20 euros \n", + "1 15 to 20 euros \n", + "2 10 to 15 euros \n", + "3 10 to 15 euros \n", + "4 10 to 15 euros \n", + "5 10 to 15 euros \n", + "6 10 to 15 euros \n", + "7 10 to 15 euros \n", + "8 20 to 30 euros \n", + "\n", + " Are you more influenced by design or practicability ? \\\n", + "0 Practicality \n", + "1 Practicality \n", + "2 Practicality \n", + "3 Practicality \n", + "4 Practicality \n", + "5 Practicality \n", + "6 Practicality \n", + "7 Design \n", + "8 Design \n", + "\n", + " If you were to buy one, where would you buy it? \n", + "0 Supermarket \n", + "1 Online \n", + "2 Sports shop \n", + "3 Supermarket \n", + "4 Supermarket \n", + "5 Supermarket \n", + "6 Organic / Eco-friendly shop \n", + "7 Online \n", + "8 Online " + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file2= pd.read_csv('HAVE_NOT_RWB.csv') #Read\n", + "file2" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "8d32093f", + "metadata": {}, + "outputs": [], + "source": [ + "#DROPING the 'Timestamp' column that comes from the Google form\n", + "file2=file2.drop('Timestamp', axis=1)" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "d7df4793", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
When you are at work/school and/or travelling how do you keep hydrated?Is there a particular reason for you not to have a reusable bottle?Do you consider getting a reusable bottle, in the future?If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well?If you were to buy a reusable bottle, which one would you consider?Do you think reusable water bottles have an environmental impact?Would the environmental impact be an incentive for you to buy one?What is the amount of money you would be willing to spend on a reusable water bottle ?Are you more influenced by design or practicability ?If you were to buy one, where would you buy it?
0I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
2I buy water botlles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
3Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
4YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
\n", + "
" + ], + "text/plain": [ + " When you are at work/school and/or travelling how do you keep hydrated? \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water botlles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "\n", + " Is there a particular reason for you not to have a reusable bottle? \\\n", + "0 Not any but maybe just having less things to c... \n", + "1 I lose them \n", + "2 Just not my thing. \n", + "3 No \n", + "4 I have one bit it's to havy. Need to replace it \n", + "\n", + " Do you consider getting a reusable bottle, in the future? \\\n", + "0 Maybe \n", + "1 Yes \n", + "2 Maybe \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well? \\\n", + "0 Undecided \n", + "1 Yes \n", + "2 No \n", + "3 No \n", + "4 Undecided \n", + "\n", + " If you were to buy a reusable bottle, which one would you consider? \\\n", + "0 Steel \n", + "1 Glass \n", + "2 Glass \n", + "3 Glass \n", + "4 Other (bamboo, aluminium, ...) \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Would the environmental impact be an incentive for you to buy one? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " What is the amount of money you would be willing to spend on a reusable water bottle ? \\\n", + "0 15 to 20 euros \n", + "1 15 to 20 euros \n", + "2 10 to 15 euros \n", + "3 10 to 15 euros \n", + "4 10 to 15 euros \n", + "\n", + " Are you more influenced by design or practicability ? \\\n", + "0 Practicality \n", + "1 Practicality \n", + "2 Practicality \n", + "3 Practicality \n", + "4 Practicality \n", + "\n", + " If you were to buy one, where would you buy it? \n", + "0 Supermarket \n", + "1 Online \n", + "2 Sports shop \n", + "3 Supermarket \n", + "4 Supermarket " + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file2.reset_index(drop=True) #index reset following the drop\n", + "file2.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "id": "90a2dc79", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
No_Bot_MethodReasonFuture_AcquisitionPeer_pressureMaterialEnv_impactEnv_incentivePrice_RangeDesign_VS_PractBought_Where
0I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
2I buy water bottles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
3Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
4YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
5tap waterdo not like plastic nor glassMaybeNoSteelYesYes10 to 15 eurosPracticalitySupermarket
6ususaly bring a bottle with me for a whole wee...i should buy itYesNoSteelYesYes10 to 15 eurosPracticalityOrganic / Eco-friendly shop
7FountainLost itMaybeNoOther (bamboo, aluminium, ...)YesYes10 to 15 eurosDesignOnline
8I always carry with me a reusable bottle.I always carry with me a reusable bottle.YesYesSteelYesYes20 to 30 eurosDesignOnline
\n", + "
" + ], + "text/plain": [ + " No_Bot_Method \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water bottles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "5 tap water \n", + "6 ususaly bring a bottle with me for a whole wee... \n", + "7 Fountain \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Reason Future_Acquisition \\\n", + "0 Not any but maybe just having less things to c... Maybe \n", + "1 I lose them Yes \n", + "2 Just not my thing. Maybe \n", + "3 No Yes \n", + "4 I have one bit it's to havy. Need to replace it Yes \n", + "5 do not like plastic nor glass Maybe \n", + "6 i should buy it Yes \n", + "7 Lost it Maybe \n", + "8 I always carry with me a reusable bottle. Yes \n", + "\n", + " Peer_pressure Material Env_impact Env_incentive \\\n", + "0 Undecided Steel Yes Yes \n", + "1 Yes Glass Yes Yes \n", + "2 No Glass Yes Yes \n", + "3 No Glass Yes Yes \n", + "4 Undecided Other (bamboo, aluminium, ...) Yes Yes \n", + "5 No Steel Yes Yes \n", + "6 No Steel Yes Yes \n", + "7 No Other (bamboo, aluminium, ...) Yes Yes \n", + "8 Yes Steel Yes Yes \n", + "\n", + " Price_Range Design_VS_Pract Bought_Where \n", + "0 15 to 20 euros Practicality Supermarket \n", + "1 15 to 20 euros Practicality Online \n", + "2 10 to 15 euros Practicality Sports shop \n", + "3 10 to 15 euros Practicality Supermarket \n", + "4 10 to 15 euros Practicality Supermarket \n", + "5 10 to 15 euros Practicality Supermarket \n", + "6 10 to 15 euros Practicality Organic / Eco-friendly shop \n", + "7 10 to 15 euros Design Online \n", + "8 20 to 30 euros Design Online " + ] + }, + "execution_count": 26, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#RENAMING the column names from file2\n", + "file2.columns=['No_Bot_Method','Reason','Future_Acquisition','Peer_pressure','Material','Env_impact','Env_incentive','Price_Range','Design_VS_Pract','Bought_Where']\n", + "file2" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "c65bf33e", + "metadata": {}, + "outputs": [], + "source": [ + "#spelling correction for later labels\n", + "file2['No_Bot_Method']=file2['No_Bot_Method'].str.replace(\"botlles\",\"bottles\")" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "7bbee079", + "metadata": {}, + "outputs": [], + "source": [ + "file1.to_csv('HAVE_RWB_clean.csv') # to import to TABLEAU " + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "ac202a35", + "metadata": {}, + "outputs": [], + "source": [ + "file2.to_csv('HAVE_NOT_RWB_clean.csv') # to import to TABLEAU " + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "5ac64b74", + "metadata": {}, + "outputs": [], + "source": [ + "#######TESTING the hypothesis' sur Database 1 ####################" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "7c2a6218", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travelling0SteelYes0Yescap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
3For the environment1SteelYes1YesHold hot/cold; lid shape; leak protectionYesCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workout0PlasticYes0NoNaNYesWater temperature is usually not coldBoth10 to 15 eurosSports shopOn a daily basis
5TO save plastic0PlasticYes1NoNaNNoNaNDesign (it should be pretty)10 to 15 eurosSupermarketOn a daily basis
6reduce waste, save money1PlasticNo0NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
8To reduce plastic waste, and keep water cool f...1Other (bamboo, aluminium, ...)Yes1Yesbeing able to mantain liquids cold or hot for ...NoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
11Sustainability0SteelYes1NoNaNYesIf you go to a place with no way to refill it,...Both20 to 30 eurosOnlineOn a daily basis
12it is beautiful and I don't need to buy more b...1SteelYes1NoNaNYesyou need to carry it always with youDesign (it should be pretty)10 to 15 eurosIt was a giftOn a daily basis
13To not waste plastic and because they are prac...1SteelYes1YesI know they are just developing one with uv li...YesJust if you are not used to, you can forget itPracticality (easy to wash and carry,...)15 to 20 eurosOnlineOn a daily basis
14to stay hydrated1PlasticYes0NoNaNYesI tend to forget bringing it...Practicality (easy to wash and carry,...)10 to 15 eurosIt was a giftOn a daily basis
15Primarily, because of the environmental impact...1SteelYes1YesDefinitely, yes to thermos so it keeps water a...YesIt is a little bit hard to clean, so i would s...Practicality (easy to wash and carry,...)20 to 30 eurosOnlineOn a daily basis
16Because it helps the planet0SteelYes1YesSpecially mold. Sometimes materials are not mo...NoNaNDesign (it should be pretty)10 to 15 eurosIt was a giftOn a daily basis
18I mostly drink tap water so it makes sense to ...0SteelNo0NoNaNYesHeavy, difficult to keep water coldPracticality (easy to wash and carry,...)10 to 15 eurosIt was a giftOn a daily basis
19to avoid buying plastic bottles1SteelYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
20sustainable reasons0Other (bamboo, aluminium, ...)Yes1Yeshold cold/hotNoNaNPracticality (easy to wash and carry,...)15 to 20 eurosOnlineOn a daily basis
21one time cost and reduce plastic0SteelYes1Yessteel is better than plasticNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
22Because I think its important1Other (bamboo, aluminium, ...)Yes1NoNaNNoNaNDesign (it should be pretty)15 to 20 eurosOnlineOn a daily basis
23I like to have always a bottle with me and not...0SteelYes0YesIn my steel bottle im starting to see spots of...NoNaNPracticality (easy to wash and carry,...)20 to 30 eurosOnlineOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus \\\n", + "0 i was travelling 0 \n", + "3 For the environment 1 \n", + "4 To drink water during workout 0 \n", + "5 TO save plastic 0 \n", + "6 reduce waste, save money 1 \n", + "8 To reduce plastic waste, and keep water cool f... 1 \n", + "11 Sustainability 0 \n", + "12 it is beautiful and I don't need to buy more b... 1 \n", + "13 To not waste plastic and because they are prac... 1 \n", + "14 to stay hydrated 1 \n", + "15 Primarily, because of the environmental impact... 1 \n", + "16 Because it helps the planet 0 \n", + "18 I mostly drink tap water so it makes sense to ... 0 \n", + "19 to avoid buying plastic bottles 1 \n", + "20 sustainable reasons 0 \n", + "21 one time cost and reduce plastic 0 \n", + "22 Because I think its important 1 \n", + "23 I like to have always a bottle with me and not... 0 \n", + "\n", + " Material Env_impact Env_incentive YN_technical \\\n", + "0 Steel Yes 0 Yes \n", + "3 Steel Yes 1 Yes \n", + "4 Plastic Yes 0 No \n", + "5 Plastic Yes 1 No \n", + "6 Plastic No 0 No \n", + "8 Other (bamboo, aluminium, ...) Yes 1 Yes \n", + "11 Steel Yes 1 No \n", + "12 Steel Yes 1 No \n", + "13 Steel Yes 1 Yes \n", + "14 Plastic Yes 0 No \n", + "15 Steel Yes 1 Yes \n", + "16 Steel Yes 1 Yes \n", + "18 Steel No 0 No \n", + "19 Steel Yes 1 No \n", + "20 Other (bamboo, aluminium, ...) Yes 1 Yes \n", + "21 Steel Yes 1 Yes \n", + "22 Other (bamboo, aluminium, ...) Yes 1 No \n", + "23 Steel Yes 0 Yes \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "3 Hold hot/cold; lid shape; leak protection Yes \n", + "4 NaN Yes \n", + "5 NaN No \n", + "6 NaN No \n", + "8 being able to mantain liquids cold or hot for ... No \n", + "11 NaN Yes \n", + "12 NaN Yes \n", + "13 I know they are just developing one with uv li... Yes \n", + "14 NaN Yes \n", + "15 Definitely, yes to thermos so it keeps water a... Yes \n", + "16 Specially mold. Sometimes materials are not mo... No \n", + "18 NaN Yes \n", + "19 NaN No \n", + "20 hold cold/hot No \n", + "21 steel is better than plastic No \n", + "22 NaN No \n", + "23 In my steel bottle im starting to see spots of... No \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "5 NaN \n", + "6 NaN \n", + "8 NaN \n", + "11 If you go to a place with no way to refill it,... \n", + "12 you need to carry it always with you \n", + "13 Just if you are not used to, you can forget it \n", + "14 I tend to forget bringing it... \n", + "15 It is a little bit hard to clean, so i would s... \n", + "16 NaN \n", + "18 Heavy, difficult to keep water cold \n", + "19 NaN \n", + "20 NaN \n", + "21 NaN \n", + "22 NaN \n", + "23 NaN \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both 10 to 15 euros \n", + "5 Design (it should be pretty) 10 to 15 euros \n", + "6 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "8 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "11 Both 20 to 30 euros \n", + "12 Design (it should be pretty) 10 to 15 euros \n", + "13 Practicality (easy to wash and carry,...) 15 to 20 euros \n", + "14 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "15 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "16 Design (it should be pretty) 10 to 15 euros \n", + "18 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "19 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "20 Practicality (easy to wash and carry,...) 15 to 20 euros \n", + "21 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "22 Design (it should be pretty) 15 to 20 euros \n", + "23 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis \n", + "5 Supermarket On a daily basis \n", + "6 Sports shop On a daily basis \n", + "8 Sports shop On a daily basis \n", + "11 Online On a daily basis \n", + "12 It was a gift On a daily basis \n", + "13 Online On a daily basis \n", + "14 It was a gift On a daily basis \n", + "15 Online On a daily basis \n", + "16 It was a gift On a daily basis \n", + "18 It was a gift On a daily basis \n", + "19 Online On a daily basis \n", + "20 Online On a daily basis \n", + "21 Online On a daily basis \n", + "22 Online On a daily basis \n", + "23 Online On a daily basis " + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "elseglass=file1[file1['Material']!='Glass']\n", + "elseglass" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "id": "b28c7094", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
1The 1st was an offer, the 2nd was because I wa...1GlassYes1YesMust have handleYesGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the world0GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
7It is more practical.1GlassYes0NoNaNNoNaNPracticality (easy to wash and carry,...)20 to 30 eurosSupermarketOn a daily basis
9to save the environment, or to help at least1GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSupermarketOn a daily basis
10It's made of Glass0GlassYes1YesGlass material to not change water molecules t...YesCan breakPracticality (easy to wash and carry,...)10 to 15 eurosOrganic / Eco-friendly shopOn a daily basis
17To use it when I do sports1GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "1 The 1st was an offer, the 2nd was because I wa... 1 Glass \n", + "2 To save the world 0 Glass \n", + "7 It is more practical. 1 Glass \n", + "9 to save the environment, or to help at least 1 Glass \n", + "10 It's made of Glass 0 Glass \n", + "17 To use it when I do sports 1 Glass \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "1 Yes 1 Yes \n", + "2 Yes 1 No \n", + "7 Yes 0 No \n", + "9 Yes 1 No \n", + "10 Yes 1 Yes \n", + "17 Yes 1 No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "1 Must have handle Yes \n", + "2 NaN No \n", + "7 NaN No \n", + "9 NaN No \n", + "10 Glass material to not change water molecules t... Yes \n", + "17 NaN No \n", + "\n", + " Detail_disadvantage \\\n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "7 NaN \n", + "9 NaN \n", + "10 Can break \n", + "17 NaN \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "7 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "9 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "10 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "17 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "7 Supermarket On a daily basis \n", + "9 Supermarket On a daily basis \n", + "10 Organic / Eco-friendly shop On a daily basis \n", + "17 Online On a daily basis " + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "glassf=file1[file1['Material']=='Glass'] # Selecting and adding to new df Glass rows.\n", + "glassf" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "id": "07dcf3fb", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Ttest_indResult(statistic=0.8246211251235324, pvalue=0.42853661643356133)" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#H1 --- Are the people who buy glass bottle concerned by the environment incentive? \n", + "#H0 ---Does having environmental concerns equates for individuals to possess a glass bottle?\n", + "st.ttest_ind(glassf['Env_incentive'],elseglass['Env_incentive'], equal_var=False)\n", + "#Answer : In this sample, we cannot reject the hypothesis" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "id": "b3f3749d", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Ttest_indResult(statistic=0.6852833426171309, pvalue=0.511252493307571)" + ] + }, + "execution_count": 25, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#H0--- Is the fact that people have a glass bottle, related to having more than one bottle?\n", + "#H1---Do people who have a glass bottle own more than one reusable water?\n", + "st.ttest_ind(glassf['Own_plus'], elseglass['Own_plus'], equal_var=False)\n", + "#having more bottles is not different from glass and non glass bottle owners #we cannot reject the H0 on this sample" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e77b6619", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.8.8" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/your-project/00_Code_db/HAVE_NOT_RWB.csv b/your-project/00_Code_db/HAVE_NOT_RWB.csv new file mode 100644 index 0000000..022fa56 --- /dev/null +++ b/your-project/00_Code_db/HAVE_NOT_RWB.csv @@ -0,0 +1,10 @@ +"Timestamp","When you are at work/school and/or travelling how do you keep hydrated?","Is there a particular reason for you not to have a reusable bottle?"," Do you consider getting a reusable bottle, in the future?"," If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well?"," If you were to buy a reusable bottle, which one would you consider?","Do you think reusable water bottles have an environmental impact?","Would the environmental impact be an incentive for you to buy one?"," What is the amount of money you would be willing to spend on a reusable water bottle ?","Are you more influenced by design or practicability ?","If you were to buy one, where would you buy it?" +"2021/07/06 8:23:24 AM GMT+1","I go for a glass/bottle of water when I am thristy.","Not any but maybe just having less things to carry with me","Maybe","Undecided","Steel","Yes","Yes","15 to 20 euros","Practicality","Supermarket" +"2021/07/06 8:39:27 AM GMT+1","I get a glass of water","I lose them ","Yes","Yes","Glass","Yes","Yes","15 to 20 euros","Practicality","Online" +"2021/07/06 9:05:32 AM GMT+1","I buy water botlles.","Just not my thing.","Maybe","No","Glass","Yes","Yes","10 to 15 euros","Practicality","Sports shop" +"2021/07/06 12:24:59 PM GMT+1","Plastic water bottle","No","Yes","No","Glass","Yes","Yes","10 to 15 euros","Practicality","Supermarket" +"2021/07/06 1:03:42 PM GMT+1","Yes","I have one bit it's to havy. Need to replace it","Yes","Undecided","Other (bamboo, aluminium, ...)","Yes","Yes","10 to 15 euros","Practicality","Supermarket" +"2021/07/06 1:04:07 PM GMT+1","tap water","do not like plastic nor glass","Maybe","No","Steel","Yes","Yes","10 to 15 euros","Practicality","Supermarket" +"2021/07/06 4:37:25 PM GMT+1","ususaly bring a bottle with me for a whole week and then change it ","i should buy it ","Yes","No","Steel","Yes","Yes","10 to 15 euros","Practicality","Organic / Eco-friendly shop" +"2021/07/06 4:55:33 PM GMT+1","Fountain","Lost it","Maybe","No","Other (bamboo, aluminium, ...)","Yes","Yes","10 to 15 euros","Design","Online" +"2021/07/07 3:09:47 PM GMT+1","I always carry with me a reusable bottle. ","I always carry with me a reusable bottle. ","Yes","Yes","Steel","Yes","Yes","20 to 30 euros","Design","Online" \ No newline at end of file diff --git a/your-project/00_Code_db/HAVE_NOT_RWB_clean.csv b/your-project/00_Code_db/HAVE_NOT_RWB_clean.csv new file mode 100644 index 0000000..679b1cc --- /dev/null +++ b/your-project/00_Code_db/HAVE_NOT_RWB_clean.csv @@ -0,0 +1,10 @@ +,No_Bot_Method,Reason,Future_Acquisition,Peer_pressure,Material,Env_impact,Env_incentive,Price_Range,Design_VS_Pract,Bought_Where +0,I go for a glass/bottle of water when I am thristy.,Not any but maybe just having less things to carry with me,Maybe,Undecided,Steel,Yes,Yes,15 to 20 euros,Practicality,Supermarket +1,I get a glass of water,I lose them ,Yes,Yes,Glass,Yes,Yes,15 to 20 euros,Practicality,Online +2,I buy water bottles.,Just not my thing.,Maybe,No,Glass,Yes,Yes,10 to 15 euros,Practicality,Sports shop +3,Plastic water bottle,No,Yes,No,Glass,Yes,Yes,10 to 15 euros,Practicality,Supermarket +4,Yes,I have one bit it's to havy. Need to replace it,Yes,Undecided,"Other (bamboo, aluminium, ...)",Yes,Yes,10 to 15 euros,Practicality,Supermarket +5,tap water,do not like plastic nor glass,Maybe,No,Steel,Yes,Yes,10 to 15 euros,Practicality,Supermarket +6,ususaly bring a bottle with me for a whole week and then change it ,i should buy it ,Yes,No,Steel,Yes,Yes,10 to 15 euros,Practicality,Organic / Eco-friendly shop +7,Fountain,Lost it,Maybe,No,"Other (bamboo, aluminium, ...)",Yes,Yes,10 to 15 euros,Design,Online +8,I always carry with me a reusable bottle. ,I always carry with me a reusable bottle. ,Yes,Yes,Steel,Yes,Yes,20 to 30 euros,Design,Online diff --git a/your-project/00_Code_db/HAVE_RWB.csv b/your-project/00_Code_db/HAVE_RWB.csv new file mode 100644 index 0000000..1af26f6 --- /dev/null +++ b/your-project/00_Code_db/HAVE_RWB.csv @@ -0,0 +1,25 @@ +"Timestamp","Why did you buy a reusable bottle?","Do you own more than one?"," What is your bottle's main material ?","Do you think reusable water bottles have an environmental impact?","Was the environmental aspect the main incentive for you to buy one?","Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...)","Technical requirements or improvements for reusable water bottles (if you answered yes above)","Do you find there are disadvantages to having one ? ","Disadvantages (if you answered yes above) :","Were you influenced by design or practicability ?"," What is the amount of money you are willing to spend on a reusable water bottle ?","Where did you buy your bottle?","How often do you use it ?" +"2021/07/06 12:25:49 AM GMT+1","i was travelling","No","Steel","Yes","No","Yes, explain below","cap size","No","","Practicality (easy to wash and carry,...)","10 to 15 euros","Sports shop","On a daily basis" +"2021/07/06 8:39:41 AM GMT+1","The 1st was an offer, the 2nd was because I wanted one in glass (to avoid as much as possible the intake ofplasticisers)","Yes","Glass","Yes","Yes","Yes, explain below","Must have handle","Yes, explain below","Glass weight. It is heavier than plastic.","Both","10 to 15 euros","Online","On a daily basis" +"2021/07/06 8:56:55 AM GMT+1","To save the world","No","Glass","Yes","Yes","No","","No","","Practicality (easy to wash and carry,...)","10 to 15 euros","Don’t know /remember","On a daily basis" +"2021/07/06 9:08:36 AM GMT+1","For the environment","Yes","Steel","Yes","Yes","Yes, explain below","Hold hot/cold; lid shape; leak protection","Yes, explain below","Cleaning","Design (it should be pretty)","15 to 20 euros","Organic / Eco-friendly shop","On a daily basis" +"2021/07/06 9:31:05 AM GMT+1","To drink water during workout","No","Plastic","Yes","No","No","","Yes, explain below","Water temperature is usually not cold ","Both.","10 to 15 euros","Sports shop","On a daily basis" +"2021/07/06 10:51:56 AM GMT+1","TO save plastic","No","Plastic","Yes","Yes","No","","No","","Design (it should be pretty)","10 to 15 euros","Supermarket","On a daily basis" +"2021/07/06 10:59:00 AM GMT+1","reduce waste, save money","Yes","Plastic","No","No","No","","No","","Practicality (easy to wash and carry,...)","10 to 15 euros","Sports shop","On a daily basis" +"2021/07/06 11:19:04 AM GMT+1","It is more practical. ","Yes","Glass","Yes","No","No","","No","","Practicality (easy to wash and carry,...)","20 to 30 euros","Supermarket","On a daily basis" +"2021/07/06 11:29:28 AM GMT+1","To reduce plastic waste, and keep water cool for a whole day while outside","Yes","Other (bamboo, aluminium, ...)","Yes","Yes","Yes, explain below","being able to mantain liquids cold or hot for long periods of time/ 1L capability/ Handle to attach it easily to backpack while on strolls/ large mouthpiece for easy cleaning/ no plastic pieces that easily hold onto odor even after cleaning","No","","Practicality (easy to wash and carry,...)","10 to 15 euros","Sports shop","On a daily basis" +"2021/07/06 12:44:45 PM GMT+1","to save the environment, or to help at least","Yes","Glass","Yes","Yes","No","","No","","Practicality (easy to wash and carry,...)","10 to 15 euros","Supermarket","On a daily basis" +"2021/07/06 1:01:45 PM GMT+1","It's made of Glass","No","Glass","Yes","Yes","Yes, explain below","Glass material to not change water molecules to much and preserve more the temperature","Yes, explain below","Can break","Practicality (easy to wash and carry,...)","10 to 15 euros","Organic / Eco-friendly shop","On a daily basis" +"2021/07/06 4:37:27 PM GMT+1","Sustainability","No","Steel","Yes","Yes","No","","Yes, explain below","If you go to a place with no way to refill it, you have to end up buying a disposable one.","Both","20 to 30 euros","Online","On a daily basis" +"2021/07/06 4:53:03 PM GMT+1","it is beautiful and I don't need to buy more bottles","Yes","Steel","Yes","Yes","No","","Yes, explain below","you need to carry it always with you","Design (it should be pretty)","10 to 15 euros","It was a gift","On a daily basis" +"2021/07/06 4:53:31 PM GMT+1","To not waste plastic and because they are practical!","Yes","Steel","Yes","Yes","Yes, explain below","I know they are just developing one with uv light inside to clean it from bacteria but yeah, it should have a system to clean it fast","Yes, explain below","Just if you are not used to, you can forget it","Practicality (easy to wash and carry,...)","15 to 20 euros","Online","On a daily basis" +"2021/07/06 4:56:29 PM GMT+1","to stay hydrated","Yes","Plastic","Yes","No","No","","Yes, explain below","I tend to forget bringing it...","Practicality (easy to wash and carry,...)","10 to 15 euros","It was a gift","On a daily basis" +"2021/07/06 4:56:35 PM GMT+1","Primarily, because of the environmental impact as the water in Barcelona is drinkable but people prefer to buy bottled water. When we realized we preferred that too, we decided to get reusable water bottles to minimize our impact on environment. The type we have also keeps water cold/hot as a thermos, so it is also convenient for us during both winter and summer months.","Yes","Steel","Yes","Yes","Yes, explain below","Definitely, yes to thermos so it keeps water at constant temperature. Otherwise, no other preference. Size wise, we have a few different sizes and that is also handy depending on where we are taking them.","Yes, explain below","It is a little bit hard to clean, so i would suggest the cleaning part can be improved","Practicality (easy to wash and carry,...)","20 to 30 euros","Online","On a daily basis" +"2021/07/06 5:00:50 PM GMT+1","Because it helps the planet","No","Steel","Yes","Yes","Yes, explain below","Specially mold. Sometimes materials are not mold proof","No","","Design (it should be pretty)","10 to 15 euros","It was a gift","On a daily basis" +"2021/07/06 5:03:14 PM GMT+1","To use it when I do sports","Yes","Glass","Yes","Yes","No","","No","","Practicality (easy to wash and carry,...)","10 to 15 euros","Online","On a daily basis" +"2021/07/06 5:04:06 PM GMT+1","I mostly drink tap water so it makes sense to have one","No","Steel","No","No","No","","Yes, explain below","Heavy, difficult to keep water cold","Practicality (easy to wash and carry,...)","10 to 15 euros","It was a gift","On a daily basis" +"2021/07/06 5:05:47 PM GMT+1","to avoid buying plastic bottles","Yes","Steel","Yes","Yes","No","","No","","Practicality (easy to wash and carry,...)","10 to 15 euros","Online","On a daily basis" +"2021/07/06 9:28:37 PM GMT+1","sustainable reasons","No","Other (bamboo, aluminium, ...)","Yes","Yes","Yes, explain below","hold cold/hot","No","","Practicality (easy to wash and carry,...)","15 to 20 euros","Online","On a daily basis" +"2021/07/06 9:36:56 PM GMT+1","one time cost and reduce plastic","No","Steel","Yes","Yes","Yes, explain below","steel is better than plastic","No","","Practicality (easy to wash and carry,...)","10 to 15 euros","Online","On a daily basis" +"2021/07/07 4:37:19 PM GMT+1","Because I think its important","Yes","Other (bamboo, aluminium, ...)","Yes","Yes","No","","No","","Design (it should be pretty)","15 to 20 euros","Online","On a daily basis" +"2021/07/07 6:42:10 PM GMT+1","I like to have always a bottle with me and not waste plastic, plus I can keep the initial temperature a lot better.","No","Steel","Yes","No","Yes, explain below","In my steel bottle im starting to see spots of rust, maybe it would be better just to have a high grade plastic.","No","","Practicality (easy to wash and carry,...)","20 to 30 euros","Online","On a daily basis" \ No newline at end of file diff --git a/your-project/00_Code_db/HAVE_RWB_clean.csv b/your-project/00_Code_db/HAVE_RWB_clean.csv new file mode 100644 index 0000000..2eefbf6 --- /dev/null +++ b/your-project/00_Code_db/HAVE_RWB_clean.csv @@ -0,0 +1,25 @@ +,Why_buy,Own_plus,Material,Env_impact,Env_incentive,YN_technical,Detail_technical,YN_disadvantage,Detail_disadvantage,Design_VS_Pract,Price_Range,Bought_Where,Use +0,i was travelling,0,Steel,Yes,0,Yes,cap size,No,,"Practicality (easy to wash and carry,...)",10 to 15 euros,Sports shop,On a daily basis +1,"The 1st was an offer, the 2nd was because I wanted one in glass (to avoid as much as possible the intake ofplasticisers)",1,Glass,Yes,1,Yes,Must have handle,Yes,Glass weight. It is heavier than plastic.,Both,10 to 15 euros,Online,On a daily basis +2,To save the world,0,Glass,Yes,1,No,,No,,"Practicality (easy to wash and carry,...)",10 to 15 euros,Don’t know /remember,On a daily basis +3,For the environment,1,Steel,Yes,1,Yes,Hold hot/cold; lid shape; leak protection,Yes,Cleaning,Design (it should be pretty),15 to 20 euros,Organic / Eco-friendly shop,On a daily basis +4,To drink water during workout,0,Plastic,Yes,0,No,,Yes,Water temperature is usually not cold ,Both,10 to 15 euros,Sports shop,On a daily basis +5,TO save plastic,0,Plastic,Yes,1,No,,No,,Design (it should be pretty),10 to 15 euros,Supermarket,On a daily basis +6,"reduce waste, save money",1,Plastic,No,0,No,,No,,"Practicality (easy to wash and carry,...)",10 to 15 euros,Sports shop,On a daily basis +7,It is more practical. ,1,Glass,Yes,0,No,,No,,"Practicality (easy to wash and carry,...)",20 to 30 euros,Supermarket,On a daily basis +8,"To reduce plastic waste, and keep water cool for a whole day while outside",1,"Other (bamboo, aluminium, ...)",Yes,1,Yes,being able to mantain liquids cold or hot for long periods of time/ 1L capability/ Handle to attach it easily to backpack while on strolls/ large mouthpiece for easy cleaning/ no plastic pieces that easily hold onto odor even after cleaning,No,,"Practicality (easy to wash and carry,...)",10 to 15 euros,Sports shop,On a daily basis +9,"to save the environment, or to help at least",1,Glass,Yes,1,No,,No,,"Practicality (easy to wash and carry,...)",10 to 15 euros,Supermarket,On a daily basis +10,It's made of Glass,0,Glass,Yes,1,Yes,Glass material to not change water molecules to much and preserve more the temperature,Yes,Can break,"Practicality (easy to wash and carry,...)",10 to 15 euros,Organic / Eco-friendly shop,On a daily basis +11,Sustainability,0,Steel,Yes,1,No,,Yes,"If you go to a place with no way to refill it, you have to end up buying a disposable one.",Both,20 to 30 euros,Online,On a daily basis +12,it is beautiful and I don't need to buy more bottles,1,Steel,Yes,1,No,,Yes,you need to carry it always with you,Design (it should be pretty),10 to 15 euros,It was a gift,On a daily basis +13,To not waste plastic and because they are practical!,1,Steel,Yes,1,Yes,"I know they are just developing one with uv light inside to clean it from bacteria but yeah, it should have a system to clean it fast",Yes,"Just if you are not used to, you can forget it","Practicality (easy to wash and carry,...)",15 to 20 euros,Online,On a daily basis +14,to stay hydrated,1,Plastic,Yes,0,No,,Yes,I tend to forget bringing it...,"Practicality (easy to wash and carry,...)",10 to 15 euros,It was a gift,On a daily basis +15,"Primarily, because of the environmental impact as the water in Barcelona is drinkable but people prefer to buy bottled water. When we realized we preferred that too, we decided to get reusable water bottles to minimize our impact on environment. The type we have also keeps water cold/hot as a thermos, so it is also convenient for us during both winter and summer months.",1,Steel,Yes,1,Yes,"Definitely, yes to thermos so it keeps water at constant temperature. Otherwise, no other preference. Size wise, we have a few different sizes and that is also handy depending on where we are taking them.",Yes,"It is a little bit hard to clean, so i would suggest the cleaning part can be improved","Practicality (easy to wash and carry,...)",20 to 30 euros,Online,On a daily basis +16,Because it helps the planet,0,Steel,Yes,1,Yes,Specially mold. Sometimes materials are not mold proof,No,,Design (it should be pretty),10 to 15 euros,It was a gift,On a daily basis +17,To use it when I do sports,1,Glass,Yes,1,No,,No,,"Practicality (easy to wash and carry,...)",10 to 15 euros,Online,On a daily basis +18,I mostly drink tap water so it makes sense to have one,0,Steel,No,0,No,,Yes,"Heavy, difficult to keep water cold","Practicality (easy to wash and carry,...)",10 to 15 euros,It was a gift,On a daily basis +19,to avoid buying plastic bottles,1,Steel,Yes,1,No,,No,,"Practicality (easy to wash and carry,...)",10 to 15 euros,Online,On a daily basis +20,sustainable reasons,0,"Other (bamboo, aluminium, ...)",Yes,1,Yes,hold cold/hot,No,,"Practicality (easy to wash and carry,...)",15 to 20 euros,Online,On a daily basis +21,one time cost and reduce plastic,0,Steel,Yes,1,Yes,steel is better than plastic,No,,"Practicality (easy to wash and carry,...)",10 to 15 euros,Online,On a daily basis +22,Because I think its important,1,"Other (bamboo, aluminium, ...)",Yes,1,No,,No,,Design (it should be pretty),15 to 20 euros,Online,On a daily basis +23,"I like to have always a bottle with me and not waste plastic, plus I can keep the initial temperature a lot better.",0,Steel,Yes,0,Yes,"In my steel bottle im starting to see spots of rust, maybe it would be better just to have a high grade plastic.",No,,"Practicality (easy to wash and carry,...)",20 to 30 euros,Online,On a daily basis diff --git a/your-project/00_Code_db/Main.ipynb b/your-project/00_Code_db/Main.ipynb new file mode 100644 index 0000000..b18426b --- /dev/null +++ b/your-project/00_Code_db/Main.ipynb @@ -0,0 +1,2417 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "d2fcbbd3", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import re\n", + "from scipy.stats import ttest_1samp, ttest_ind\n", + "import scipy.stats as st\n", + "#pd.set_option('max_rows', 30)" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "06ec481a", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimestampWhy did you buy a reusable bottle?Do you own more than one?What is your bottle's main material ?Do you think reusable water bottles have an environmental impact?Was the environmental aspect the main incentive for you to buy one?Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...)Technical requirements or improvements for reusable water bottles (if you answered yes above)Do you find there are disadvantages to having one ?Disadvantages (if you answered yes above) :Were you influenced by design or practicability ?What is the amount of money you are willing to spend on a reusable water bottle ?Where did you buy your bottle?How often do you use it ?
02021/07/06 12:25:49 AM GMT+1i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
12021/07/06 8:39:41 AM GMT+1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
22021/07/06 8:56:55 AM GMT+1To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
32021/07/06 9:08:36 AM GMT+1For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
42021/07/06 9:31:05 AM GMT+1To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Timestamp \\\n", + "0 2021/07/06 12:25:49 AM GMT+1 \n", + "1 2021/07/06 8:39:41 AM GMT+1 \n", + "2 2021/07/06 8:56:55 AM GMT+1 \n", + "3 2021/07/06 9:08:36 AM GMT+1 \n", + "4 2021/07/06 9:31:05 AM GMT+1 \n", + "\n", + " Why did you buy a reusable bottle? \\\n", + "0 i was travelling \n", + "1 The 1st was an offer, the 2nd was because I wa... \n", + "2 To save the world \n", + "3 For the environment \n", + "4 To drink water during workout \n", + "\n", + " Do you own more than one? What is your bottle's main material ? \\\n", + "0 No Steel \n", + "1 Yes Glass \n", + "2 No Glass \n", + "3 Yes Steel \n", + "4 No Plastic \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Was the environmental aspect the main incentive for you to buy one? \\\n", + "0 No \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 No \n", + "\n", + " Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...) \\\n", + "0 Yes, explain below \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 No \n", + "\n", + " Technical requirements or improvements for reusable water bottles (if you answered yes above) \\\n", + "0 cap size \n", + "1 Must have handle \n", + "2 NaN \n", + "3 Hold hot/cold; lid shape; leak protection \n", + "4 NaN \n", + "\n", + " Do you find there are disadvantages to having one ? \\\n", + "0 No \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 Yes, explain below \n", + "\n", + " Disadvantages (if you answered yes above) : \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Were you influenced by design or practicability ? \\\n", + "0 Practicality (easy to wash and carry,...) \n", + "1 Both \n", + "2 Practicality (easy to wash and carry,...) \n", + "3 Design (it should be pretty) \n", + "4 Both. \n", + "\n", + " What is the amount of money you are willing to spend on a reusable water bottle ? \\\n", + "0 10 to 15 euros \n", + "1 10 to 15 euros \n", + "2 10 to 15 euros \n", + "3 15 to 20 euros \n", + "4 10 to 15 euros \n", + "\n", + " Where did you buy your bottle? How often do you use it ? \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1= pd.read_csv('HAVE_RWB.csv') #Read\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "e1bf53f7", + "metadata": {}, + "outputs": [], + "source": [ + "#DROPING the 'Timestamp' column that comes from the Google form\n", + "file1=file1.drop('Timestamp', axis=1)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "61f0fc40", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why did you buy a reusable bottle?Do you own more than one?What is your bottle's main material ?Do you think reusable water bottles have an environmental impact?Was the environmental aspect the main incentive for you to buy one?Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...)Technical requirements or improvements for reusable water bottles (if you answered yes above)Do you find there are disadvantages to having one ?Disadvantages (if you answered yes above) :Were you influenced by design or practicability ?What is the amount of money you are willing to spend on a reusable water bottle ?Where did you buy your bottle?How often do you use it ?
0i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why did you buy a reusable bottle? \\\n", + "0 i was travelling \n", + "1 The 1st was an offer, the 2nd was because I wa... \n", + "2 To save the world \n", + "3 For the environment \n", + "4 To drink water during workout \n", + "\n", + " Do you own more than one? What is your bottle's main material ? \\\n", + "0 No Steel \n", + "1 Yes Glass \n", + "2 No Glass \n", + "3 Yes Steel \n", + "4 No Plastic \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Was the environmental aspect the main incentive for you to buy one? \\\n", + "0 No \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 No \n", + "\n", + " Do you have technical requirements or improvements to suggest for reusable water bottles? (hold hot/cold ; size; cap/lid shape,handle,protection...) \\\n", + "0 Yes, explain below \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 No \n", + "\n", + " Technical requirements or improvements for reusable water bottles (if you answered yes above) \\\n", + "0 cap size \n", + "1 Must have handle \n", + "2 NaN \n", + "3 Hold hot/cold; lid shape; leak protection \n", + "4 NaN \n", + "\n", + " Do you find there are disadvantages to having one ? \\\n", + "0 No \n", + "1 Yes, explain below \n", + "2 No \n", + "3 Yes, explain below \n", + "4 Yes, explain below \n", + "\n", + " Disadvantages (if you answered yes above) : \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Were you influenced by design or practicability ? \\\n", + "0 Practicality (easy to wash and carry,...) \n", + "1 Both \n", + "2 Practicality (easy to wash and carry,...) \n", + "3 Design (it should be pretty) \n", + "4 Both. \n", + "\n", + " What is the amount of money you are willing to spend on a reusable water bottle ? \\\n", + "0 10 to 15 euros \n", + "1 10 to 15 euros \n", + "2 10 to 15 euros \n", + "3 15 to 20 euros \n", + "4 10 to 15 euros \n", + "\n", + " Where did you buy your bottle? How often do you use it ? \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1.reset_index(drop=True) #index reset following the drop\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "dd902f5f", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travellingNoSteelYesNoYes, explain belowcap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...YesGlassYesYesYes, explain belowMust have handleYes, explain belowGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the worldNoGlassYesYesNoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environmentYesSteelYesYesYes, explain belowHold hot/cold; lid shape; leak protectionYes, explain belowCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workoutNoPlasticYesNoNoNaNYes, explain belowWater temperature is usually not coldBoth.10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "0 i was travelling No Steel \n", + "1 The 1st was an offer, the 2nd was because I wa... Yes Glass \n", + "2 To save the world No Glass \n", + "3 For the environment Yes Steel \n", + "4 To drink water during workout No Plastic \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "0 Yes No Yes, explain below \n", + "1 Yes Yes Yes, explain below \n", + "2 Yes Yes No \n", + "3 Yes Yes Yes, explain below \n", + "4 Yes No No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "1 Must have handle Yes, explain below \n", + "2 NaN No \n", + "3 Hold hot/cold; lid shape; leak protection Yes, explain below \n", + "4 NaN Yes, explain below \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both. 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#RENAMING the column names from file1 - renaming all columns method\n", + "file1.columns=['Why_buy','Own_plus','Material','Env_impact','Env_incentive','YN_technical','Detail_technical','YN_disadvantage','Detail_disadvantage','Design_VS_Pract','Price_Range','Bought_Where','Use']\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "e2f9874d", + "metadata": {}, + "outputs": [], + "source": [ + "def tonumb (row): # function that change the string \"Yes\" into 1 (\"No\" becomes 0) ##This is to do the hypothesis testing \n", + " if row =='Yes':\n", + " return 1\n", + " else:\n", + " return 0" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "ec6a8cd9", + "metadata": {}, + "outputs": [], + "source": [ + "file1['Own_plus']= file1['Own_plus'].apply(tonumb) #applying the function to the row in the column" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "39daf327", + "metadata": {}, + "outputs": [], + "source": [ + "file1['Env_incentive']= file1['Env_incentive'].apply(tonumb) #applying the function to the row in the column" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "c7af6c1f", + "metadata": {}, + "outputs": [], + "source": [ + "###########CLEANING THE DATA####################\n", + "\n", + "#1) Uniformizing the Yes answers (whole dataframe)\n", + "file1=file1.replace(to_replace =\"Yes, explain below\", value =\"Yes\")" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "1832e984", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + ":2: FutureWarning: The default value of regex will change from True to False in a future version.\n", + " file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"Both.\",\"Both\")\n" + ] + } + ], + "source": [ + "#2)Removing some unwanted punctuation\n", + "file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"Both.\",\"Both\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "9f998086", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travelling0SteelYes0Yescap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
1The 1st was an offer, the 2nd was because I wa...1GlassYes1YesMust have handleYesGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the world0GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
3For the environment1SteelYes1YesHold hot/cold; lid shape; leak protectionYesCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workout0PlasticYes0NoNaNYesWater temperature is usually not coldBoth10 to 15 eurosSports shopOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "0 i was travelling 0 Steel \n", + "1 The 1st was an offer, the 2nd was because I wa... 1 Glass \n", + "2 To save the world 0 Glass \n", + "3 For the environment 1 Steel \n", + "4 To drink water during workout 0 Plastic \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "0 Yes 0 Yes \n", + "1 Yes 1 Yes \n", + "2 Yes 1 No \n", + "3 Yes 1 Yes \n", + "4 Yes 0 No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "1 Must have handle Yes \n", + "2 NaN No \n", + "3 Hold hot/cold; lid shape; leak protection Yes \n", + "4 NaN Yes \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis " + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file1['Design_VS_Pract']=file1['Design_VS_Pract'].str.replace(\"/W\",\"\")\n", + "file1.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "25c0e771", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
TimestampWhen you are at work/school and/or travelling how do you keep hydrated?Is there a particular reason for you not to have a reusable bottle?Do you consider getting a reusable bottle, in the future?If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well?If you were to buy a reusable bottle, which one would you consider?Do you think reusable water bottles have an environmental impact?Would the environmental impact be an incentive for you to buy one?What is the amount of money you would be willing to spend on a reusable water bottle ?Are you more influenced by design or practicability ?If you were to buy one, where would you buy it?
02021/07/06 8:23:24 AM GMT+1I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
12021/07/06 8:39:27 AM GMT+1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
22021/07/06 9:05:32 AM GMT+1I buy water botlles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
32021/07/06 12:24:59 PM GMT+1Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
42021/07/06 1:03:42 PM GMT+1YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
52021/07/06 1:04:07 PM GMT+1tap waterdo not like plastic nor glassMaybeNoSteelYesYes10 to 15 eurosPracticalitySupermarket
62021/07/06 4:37:25 PM GMT+1ususaly bring a bottle with me for a whole wee...i should buy itYesNoSteelYesYes10 to 15 eurosPracticalityOrganic / Eco-friendly shop
72021/07/06 4:55:33 PM GMT+1FountainLost itMaybeNoOther (bamboo, aluminium, ...)YesYes10 to 15 eurosDesignOnline
82021/07/07 3:09:47 PM GMT+1I always carry with me a reusable bottle.I always carry with me a reusable bottle.YesYesSteelYesYes20 to 30 eurosDesignOnline
\n", + "
" + ], + "text/plain": [ + " Timestamp \\\n", + "0 2021/07/06 8:23:24 AM GMT+1 \n", + "1 2021/07/06 8:39:27 AM GMT+1 \n", + "2 2021/07/06 9:05:32 AM GMT+1 \n", + "3 2021/07/06 12:24:59 PM GMT+1 \n", + "4 2021/07/06 1:03:42 PM GMT+1 \n", + "5 2021/07/06 1:04:07 PM GMT+1 \n", + "6 2021/07/06 4:37:25 PM GMT+1 \n", + "7 2021/07/06 4:55:33 PM GMT+1 \n", + "8 2021/07/07 3:09:47 PM GMT+1 \n", + "\n", + " When you are at work/school and/or travelling how do you keep hydrated? \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water botlles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "5 tap water \n", + "6 ususaly bring a bottle with me for a whole wee... \n", + "7 Fountain \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Is there a particular reason for you not to have a reusable bottle? \\\n", + "0 Not any but maybe just having less things to c... \n", + "1 I lose them \n", + "2 Just not my thing. \n", + "3 No \n", + "4 I have one bit it's to havy. Need to replace it \n", + "5 do not like plastic nor glass \n", + "6 i should buy it \n", + "7 Lost it \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Do you consider getting a reusable bottle, in the future? \\\n", + "0 Maybe \n", + "1 Yes \n", + "2 Maybe \n", + "3 Yes \n", + "4 Yes \n", + "5 Maybe \n", + "6 Yes \n", + "7 Maybe \n", + "8 Yes \n", + "\n", + " If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well? \\\n", + "0 Undecided \n", + "1 Yes \n", + "2 No \n", + "3 No \n", + "4 Undecided \n", + "5 No \n", + "6 No \n", + "7 No \n", + "8 Yes \n", + "\n", + " If you were to buy a reusable bottle, which one would you consider? \\\n", + "0 Steel \n", + "1 Glass \n", + "2 Glass \n", + "3 Glass \n", + "4 Other (bamboo, aluminium, ...) \n", + "5 Steel \n", + "6 Steel \n", + "7 Other (bamboo, aluminium, ...) \n", + "8 Steel \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "5 Yes \n", + "6 Yes \n", + "7 Yes \n", + "8 Yes \n", + "\n", + " Would the environmental impact be an incentive for you to buy one? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "5 Yes \n", + "6 Yes \n", + "7 Yes \n", + "8 Yes \n", + "\n", + " What is the amount of money you would be willing to spend on a reusable water bottle ? \\\n", + "0 15 to 20 euros \n", + "1 15 to 20 euros \n", + "2 10 to 15 euros \n", + "3 10 to 15 euros \n", + "4 10 to 15 euros \n", + "5 10 to 15 euros \n", + "6 10 to 15 euros \n", + "7 10 to 15 euros \n", + "8 20 to 30 euros \n", + "\n", + " Are you more influenced by design or practicability ? \\\n", + "0 Practicality \n", + "1 Practicality \n", + "2 Practicality \n", + "3 Practicality \n", + "4 Practicality \n", + "5 Practicality \n", + "6 Practicality \n", + "7 Design \n", + "8 Design \n", + "\n", + " If you were to buy one, where would you buy it? \n", + "0 Supermarket \n", + "1 Online \n", + "2 Sports shop \n", + "3 Supermarket \n", + "4 Supermarket \n", + "5 Supermarket \n", + "6 Organic / Eco-friendly shop \n", + "7 Online \n", + "8 Online " + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file2= pd.read_csv('HAVE_NOT_RWB.csv') #Read\n", + "file2" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "8d32093f", + "metadata": {}, + "outputs": [], + "source": [ + "#DROPING the 'Timestamp' column that comes from the Google form\n", + "file2=file2.drop('Timestamp', axis=1)" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "d7df4793", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
When you are at work/school and/or travelling how do you keep hydrated?Is there a particular reason for you not to have a reusable bottle?Do you consider getting a reusable bottle, in the future?If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well?If you were to buy a reusable bottle, which one would you consider?Do you think reusable water bottles have an environmental impact?Would the environmental impact be an incentive for you to buy one?What is the amount of money you would be willing to spend on a reusable water bottle ?Are you more influenced by design or practicability ?If you were to buy one, where would you buy it?
0I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
2I buy water botlles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
3Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
4YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
\n", + "
" + ], + "text/plain": [ + " When you are at work/school and/or travelling how do you keep hydrated? \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water botlles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "\n", + " Is there a particular reason for you not to have a reusable bottle? \\\n", + "0 Not any but maybe just having less things to c... \n", + "1 I lose them \n", + "2 Just not my thing. \n", + "3 No \n", + "4 I have one bit it's to havy. Need to replace it \n", + "\n", + " Do you consider getting a reusable bottle, in the future? \\\n", + "0 Maybe \n", + "1 Yes \n", + "2 Maybe \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " If all your friends or colleagues had a reusable bottle, would that make you feel obligated to buy one as well? \\\n", + "0 Undecided \n", + "1 Yes \n", + "2 No \n", + "3 No \n", + "4 Undecided \n", + "\n", + " If you were to buy a reusable bottle, which one would you consider? \\\n", + "0 Steel \n", + "1 Glass \n", + "2 Glass \n", + "3 Glass \n", + "4 Other (bamboo, aluminium, ...) \n", + "\n", + " Do you think reusable water bottles have an environmental impact? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " Would the environmental impact be an incentive for you to buy one? \\\n", + "0 Yes \n", + "1 Yes \n", + "2 Yes \n", + "3 Yes \n", + "4 Yes \n", + "\n", + " What is the amount of money you would be willing to spend on a reusable water bottle ? \\\n", + "0 15 to 20 euros \n", + "1 15 to 20 euros \n", + "2 10 to 15 euros \n", + "3 10 to 15 euros \n", + "4 10 to 15 euros \n", + "\n", + " Are you more influenced by design or practicability ? \\\n", + "0 Practicality \n", + "1 Practicality \n", + "2 Practicality \n", + "3 Practicality \n", + "4 Practicality \n", + "\n", + " If you were to buy one, where would you buy it? \n", + "0 Supermarket \n", + "1 Online \n", + "2 Sports shop \n", + "3 Supermarket \n", + "4 Supermarket " + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "file2.reset_index(drop=True) #index reset following the drop\n", + "file2.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "90a2dc79", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
No_Bot_MethodReasonFuture_AcquisitionPeer_pressureMaterialEnv_impactEnv_incentivePrice_RangeDesign_VS_PractBought_Where
0I go for a glass/bottle of water when I am thr...Not any but maybe just having less things to c...MaybeUndecidedSteelYesYes15 to 20 eurosPracticalitySupermarket
1I get a glass of waterI lose themYesYesGlassYesYes15 to 20 eurosPracticalityOnline
2I buy water botlles.Just not my thing.MaybeNoGlassYesYes10 to 15 eurosPracticalitySports shop
3Plastic water bottleNoYesNoGlassYesYes10 to 15 eurosPracticalitySupermarket
4YesI have one bit it's to havy. Need to replace itYesUndecidedOther (bamboo, aluminium, ...)YesYes10 to 15 eurosPracticalitySupermarket
5tap waterdo not like plastic nor glassMaybeNoSteelYesYes10 to 15 eurosPracticalitySupermarket
6ususaly bring a bottle with me for a whole wee...i should buy itYesNoSteelYesYes10 to 15 eurosPracticalityOrganic / Eco-friendly shop
7FountainLost itMaybeNoOther (bamboo, aluminium, ...)YesYes10 to 15 eurosDesignOnline
8I always carry with me a reusable bottle.I always carry with me a reusable bottle.YesYesSteelYesYes20 to 30 eurosDesignOnline
\n", + "
" + ], + "text/plain": [ + " No_Bot_Method \\\n", + "0 I go for a glass/bottle of water when I am thr... \n", + "1 I get a glass of water \n", + "2 I buy water botlles. \n", + "3 Plastic water bottle \n", + "4 Yes \n", + "5 tap water \n", + "6 ususaly bring a bottle with me for a whole wee... \n", + "7 Fountain \n", + "8 I always carry with me a reusable bottle. \n", + "\n", + " Reason Future_Acquisition \\\n", + "0 Not any but maybe just having less things to c... Maybe \n", + "1 I lose them Yes \n", + "2 Just not my thing. Maybe \n", + "3 No Yes \n", + "4 I have one bit it's to havy. Need to replace it Yes \n", + "5 do not like plastic nor glass Maybe \n", + "6 i should buy it Yes \n", + "7 Lost it Maybe \n", + "8 I always carry with me a reusable bottle. Yes \n", + "\n", + " Peer_pressure Material Env_impact Env_incentive \\\n", + "0 Undecided Steel Yes Yes \n", + "1 Yes Glass Yes Yes \n", + "2 No Glass Yes Yes \n", + "3 No Glass Yes Yes \n", + "4 Undecided Other (bamboo, aluminium, ...) Yes Yes \n", + "5 No Steel Yes Yes \n", + "6 No Steel Yes Yes \n", + "7 No Other (bamboo, aluminium, ...) Yes Yes \n", + "8 Yes Steel Yes Yes \n", + "\n", + " Price_Range Design_VS_Pract Bought_Where \n", + "0 15 to 20 euros Practicality Supermarket \n", + "1 15 to 20 euros Practicality Online \n", + "2 10 to 15 euros Practicality Sports shop \n", + "3 10 to 15 euros Practicality Supermarket \n", + "4 10 to 15 euros Practicality Supermarket \n", + "5 10 to 15 euros Practicality Supermarket \n", + "6 10 to 15 euros Practicality Organic / Eco-friendly shop \n", + "7 10 to 15 euros Design Online \n", + "8 20 to 30 euros Design Online " + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#RENAMING the column names from file2\n", + "file2.columns=['No_Bot_Method','Reason','Future_Acquisition','Peer_pressure','Material','Env_impact','Env_incentive','Price_Range','Design_VS_Pract','Bought_Where']\n", + "file2" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "c65bf33e", + "metadata": {}, + "outputs": [], + "source": [ + "#spelling correction for later labels\n", + "file2['No_Bot_Method']=file2['No_Bot_Method'].str.replace(\"botlles\",\"bottles\")" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "7bbee079", + "metadata": {}, + "outputs": [], + "source": [ + "file1.to_csv('HAVE_RWB_clean.csv') # to import to TABLEAU " + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "ac202a35", + "metadata": {}, + "outputs": [], + "source": [ + "file2.to_csv('HAVE_NOT_RWB_clean.csv') # to import to TABLEAU " + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "id": "5ac64b74", + "metadata": {}, + "outputs": [], + "source": [ + "#######TESTING the hypothesis' sur Database 1 ####################" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "7c2a6218", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
0i was travelling0SteelYes0Yescap sizeNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
3For the environment1SteelYes1YesHold hot/cold; lid shape; leak protectionYesCleaningDesign (it should be pretty)15 to 20 eurosOrganic / Eco-friendly shopOn a daily basis
4To drink water during workout0PlasticYes0NoNaNYesWater temperature is usually not coldBoth10 to 15 eurosSports shopOn a daily basis
5TO save plastic0PlasticYes1NoNaNNoNaNDesign (it should be pretty)10 to 15 eurosSupermarketOn a daily basis
6reduce waste, save money1PlasticNo0NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
8To reduce plastic waste, and keep water cool f...1Other (bamboo, aluminium, ...)Yes1Yesbeing able to mantain liquids cold or hot for ...NoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSports shopOn a daily basis
11Sustainability0SteelYes1NoNaNYesIf you go to a place with no way to refill it,...Both20 to 30 eurosOnlineOn a daily basis
12it is beautiful and I don't need to buy more b...1SteelYes1NoNaNYesyou need to carry it always with youDesign (it should be pretty)10 to 15 eurosIt was a giftOn a daily basis
13To not waste plastic and because they are prac...1SteelYes1YesI know they are just developing one with uv li...YesJust if you are not used to, you can forget itPracticality (easy to wash and carry,...)15 to 20 eurosOnlineOn a daily basis
14to stay hydrated1PlasticYes0NoNaNYesI tend to forget bringing it...Practicality (easy to wash and carry,...)10 to 15 eurosIt was a giftOn a daily basis
15Primarily, because of the environmental impact...1SteelYes1YesDefinitely, yes to thermos so it keeps water a...YesIt is a little bit hard to clean, so i would s...Practicality (easy to wash and carry,...)20 to 30 eurosOnlineOn a daily basis
16Because it helps the planet0SteelYes1YesSpecially mold. Sometimes materials are not mo...NoNaNDesign (it should be pretty)10 to 15 eurosIt was a giftOn a daily basis
18I mostly drink tap water so it makes sense to ...0SteelNo0NoNaNYesHeavy, difficult to keep water coldPracticality (easy to wash and carry,...)10 to 15 eurosIt was a giftOn a daily basis
19to avoid buying plastic bottles1SteelYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
20sustainable reasons0Other (bamboo, aluminium, ...)Yes1Yeshold cold/hotNoNaNPracticality (easy to wash and carry,...)15 to 20 eurosOnlineOn a daily basis
21one time cost and reduce plastic0SteelYes1Yessteel is better than plasticNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
22Because I think its important1Other (bamboo, aluminium, ...)Yes1NoNaNNoNaNDesign (it should be pretty)15 to 20 eurosOnlineOn a daily basis
23I like to have always a bottle with me and not...0SteelYes0YesIn my steel bottle im starting to see spots of...NoNaNPracticality (easy to wash and carry,...)20 to 30 eurosOnlineOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus \\\n", + "0 i was travelling 0 \n", + "3 For the environment 1 \n", + "4 To drink water during workout 0 \n", + "5 TO save plastic 0 \n", + "6 reduce waste, save money 1 \n", + "8 To reduce plastic waste, and keep water cool f... 1 \n", + "11 Sustainability 0 \n", + "12 it is beautiful and I don't need to buy more b... 1 \n", + "13 To not waste plastic and because they are prac... 1 \n", + "14 to stay hydrated 1 \n", + "15 Primarily, because of the environmental impact... 1 \n", + "16 Because it helps the planet 0 \n", + "18 I mostly drink tap water so it makes sense to ... 0 \n", + "19 to avoid buying plastic bottles 1 \n", + "20 sustainable reasons 0 \n", + "21 one time cost and reduce plastic 0 \n", + "22 Because I think its important 1 \n", + "23 I like to have always a bottle with me and not... 0 \n", + "\n", + " Material Env_impact Env_incentive YN_technical \\\n", + "0 Steel Yes 0 Yes \n", + "3 Steel Yes 1 Yes \n", + "4 Plastic Yes 0 No \n", + "5 Plastic Yes 1 No \n", + "6 Plastic No 0 No \n", + "8 Other (bamboo, aluminium, ...) Yes 1 Yes \n", + "11 Steel Yes 1 No \n", + "12 Steel Yes 1 No \n", + "13 Steel Yes 1 Yes \n", + "14 Plastic Yes 0 No \n", + "15 Steel Yes 1 Yes \n", + "16 Steel Yes 1 Yes \n", + "18 Steel No 0 No \n", + "19 Steel Yes 1 No \n", + "20 Other (bamboo, aluminium, ...) Yes 1 Yes \n", + "21 Steel Yes 1 Yes \n", + "22 Other (bamboo, aluminium, ...) Yes 1 No \n", + "23 Steel Yes 0 Yes \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "0 cap size No \n", + "3 Hold hot/cold; lid shape; leak protection Yes \n", + "4 NaN Yes \n", + "5 NaN No \n", + "6 NaN No \n", + "8 being able to mantain liquids cold or hot for ... No \n", + "11 NaN Yes \n", + "12 NaN Yes \n", + "13 I know they are just developing one with uv li... Yes \n", + "14 NaN Yes \n", + "15 Definitely, yes to thermos so it keeps water a... Yes \n", + "16 Specially mold. Sometimes materials are not mo... No \n", + "18 NaN Yes \n", + "19 NaN No \n", + "20 hold cold/hot No \n", + "21 steel is better than plastic No \n", + "22 NaN No \n", + "23 In my steel bottle im starting to see spots of... No \n", + "\n", + " Detail_disadvantage \\\n", + "0 NaN \n", + "3 Cleaning \n", + "4 Water temperature is usually not cold \n", + "5 NaN \n", + "6 NaN \n", + "8 NaN \n", + "11 If you go to a place with no way to refill it,... \n", + "12 you need to carry it always with you \n", + "13 Just if you are not used to, you can forget it \n", + "14 I tend to forget bringing it... \n", + "15 It is a little bit hard to clean, so i would s... \n", + "16 NaN \n", + "18 Heavy, difficult to keep water cold \n", + "19 NaN \n", + "20 NaN \n", + "21 NaN \n", + "22 NaN \n", + "23 NaN \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "0 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "3 Design (it should be pretty) 15 to 20 euros \n", + "4 Both 10 to 15 euros \n", + "5 Design (it should be pretty) 10 to 15 euros \n", + "6 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "8 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "11 Both 20 to 30 euros \n", + "12 Design (it should be pretty) 10 to 15 euros \n", + "13 Practicality (easy to wash and carry,...) 15 to 20 euros \n", + "14 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "15 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "16 Design (it should be pretty) 10 to 15 euros \n", + "18 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "19 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "20 Practicality (easy to wash and carry,...) 15 to 20 euros \n", + "21 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "22 Design (it should be pretty) 15 to 20 euros \n", + "23 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "\n", + " Bought_Where Use \n", + "0 Sports shop On a daily basis \n", + "3 Organic / Eco-friendly shop On a daily basis \n", + "4 Sports shop On a daily basis \n", + "5 Supermarket On a daily basis \n", + "6 Sports shop On a daily basis \n", + "8 Sports shop On a daily basis \n", + "11 Online On a daily basis \n", + "12 It was a gift On a daily basis \n", + "13 Online On a daily basis \n", + "14 It was a gift On a daily basis \n", + "15 Online On a daily basis \n", + "16 It was a gift On a daily basis \n", + "18 It was a gift On a daily basis \n", + "19 Online On a daily basis \n", + "20 Online On a daily basis \n", + "21 Online On a daily basis \n", + "22 Online On a daily basis \n", + "23 Online On a daily basis " + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "elseglass=file1[file1['Material']!='Glass']\n", + "elseglass" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "id": "b28c7094", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Why_buyOwn_plusMaterialEnv_impactEnv_incentiveYN_technicalDetail_technicalYN_disadvantageDetail_disadvantageDesign_VS_PractPrice_RangeBought_WhereUse
1The 1st was an offer, the 2nd was because I wa...1GlassYes1YesMust have handleYesGlass weight. It is heavier than plastic.Both10 to 15 eurosOnlineOn a daily basis
2To save the world0GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosDon’t know /rememberOn a daily basis
7It is more practical.1GlassYes0NoNaNNoNaNPracticality (easy to wash and carry,...)20 to 30 eurosSupermarketOn a daily basis
9to save the environment, or to help at least1GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosSupermarketOn a daily basis
10It's made of Glass0GlassYes1YesGlass material to not change water molecules t...YesCan breakPracticality (easy to wash and carry,...)10 to 15 eurosOrganic / Eco-friendly shopOn a daily basis
17To use it when I do sports1GlassYes1NoNaNNoNaNPracticality (easy to wash and carry,...)10 to 15 eurosOnlineOn a daily basis
\n", + "
" + ], + "text/plain": [ + " Why_buy Own_plus Material \\\n", + "1 The 1st was an offer, the 2nd was because I wa... 1 Glass \n", + "2 To save the world 0 Glass \n", + "7 It is more practical. 1 Glass \n", + "9 to save the environment, or to help at least 1 Glass \n", + "10 It's made of Glass 0 Glass \n", + "17 To use it when I do sports 1 Glass \n", + "\n", + " Env_impact Env_incentive YN_technical \\\n", + "1 Yes 1 Yes \n", + "2 Yes 1 No \n", + "7 Yes 0 No \n", + "9 Yes 1 No \n", + "10 Yes 1 Yes \n", + "17 Yes 1 No \n", + "\n", + " Detail_technical YN_disadvantage \\\n", + "1 Must have handle Yes \n", + "2 NaN No \n", + "7 NaN No \n", + "9 NaN No \n", + "10 Glass material to not change water molecules t... Yes \n", + "17 NaN No \n", + "\n", + " Detail_disadvantage \\\n", + "1 Glass weight. It is heavier than plastic. \n", + "2 NaN \n", + "7 NaN \n", + "9 NaN \n", + "10 Can break \n", + "17 NaN \n", + "\n", + " Design_VS_Pract Price_Range \\\n", + "1 Both 10 to 15 euros \n", + "2 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "7 Practicality (easy to wash and carry,...) 20 to 30 euros \n", + "9 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "10 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "17 Practicality (easy to wash and carry,...) 10 to 15 euros \n", + "\n", + " Bought_Where Use \n", + "1 Online On a daily basis \n", + "2 Don’t know /remember On a daily basis \n", + "7 Supermarket On a daily basis \n", + "9 Supermarket On a daily basis \n", + "10 Organic / Eco-friendly shop On a daily basis \n", + "17 Online On a daily basis " + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "glassf=file1[file1['Material']=='Glass'] # Selecting and adding to new df Glass rows.\n", + "glassf" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "id": "07dcf3fb", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Ttest_indResult(statistic=0.8246211251235324, pvalue=0.42853661643356133)" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#H1 --- Are the people who buy glass bottle concerned by the environment incentive? \n", + "#H0 ---Does having environmental concerns equates for individuals to possess a glass bottle?\n", + "st.ttest_ind(glassf['Env_incentive'],elseglass['Env_incentive'], equal_var=False)\n", + "#Answer : In this sample, we cannot reject the hypothesis" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "id": "b3f3749d", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Ttest_indResult(statistic=0.6852833426171309, pvalue=0.511252493307571)" + ] + }, + "execution_count": 23, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "#H0--- Is the fact that people have a glass bottle, related to having more than one bottle?\n", + "#H1---Do people who have a glass bottle own more than one reusable water?\n", + "st.ttest_ind(glassf['Own_plus'], elseglass['Own_plus'], equal_var=False)\n", + "#having more bottles is not different from glass and non glass bottle owners #we cannot reject the H0 on this sample" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e77b6619", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.8.8" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/your-project/00_Code_db/requirements.txt b/your-project/00_Code_db/requirements.txt new file mode 100644 index 0000000..2d0f02e --- /dev/null +++ b/your-project/00_Code_db/requirements.txt @@ -0,0 +1,11 @@ +certifi==2020.6.20 +mkl-fft==1.2.0 +mkl-random==1.0.4 +mkl-service==2.3.0 +numpy @ file:///C:/ci/numpy_and_numpy_base_1596233945180/work +pandas @ file:///C:/ci/pandas_1602088205210/work +python-dateutil==2.8.1 +pytz==2020.1 +regex @ file:///D:/bld/regex_1625538983347/work +six==1.15.0 +wincertstore==0.2 diff --git a/your-project/01_Presentation/DAFTM21_Project5_W6_LFLEY.pdf b/your-project/01_Presentation/DAFTM21_Project5_W6_LFLEY.pdf new file mode 100644 index 0000000..e606fb4 Binary files /dev/null and b/your-project/01_Presentation/DAFTM21_Project5_W6_LFLEY.pdf differ diff --git a/your-project/01_Presentation/DAFTM21_Project5_W6_LFLEY.pptx b/your-project/01_Presentation/DAFTM21_Project5_W6_LFLEY.pptx new file mode 100644 index 0000000..dd5b60a Binary files /dev/null and b/your-project/01_Presentation/DAFTM21_Project5_W6_LFLEY.pptx differ diff --git a/your-project/README.md b/your-project/README.md index 0c5c97c..1d6dfd0 100644 --- a/your-project/README.md +++ b/your-project/README.md @@ -1,9 +1,9 @@ Ironhack Logo -# Title of My Project -*[Your Name]* +# Title of My Project : What motivates people to buy or not buy water bottles? +*[Lucie]* -*[Your Cohort, Campus & Date]* +*[DAFT MAY 2021]* ## Content - [Project Description](#project-description) @@ -18,6 +18,8 @@ ## Project Description Write a short description of your project: 3-5 sentences about what your project is about, why you chose this topic (if relevant), and what you are trying to show. + + ## Hypotheses / Questions