diff --git a/04.Filtering Data/1.Filter a Dataframe Based on 1 Condition.ipynb b/04.Filtering Data/1.Filter a Dataframe Based on 1 Condition.ipynb index 4ee9db4..e62de48 100644 --- a/04.Filtering Data/1.Filter a Dataframe Based on 1 Condition.ipynb +++ b/04.Filtering Data/1.Filter a Dataframe Based on 1 Condition.ipynb @@ -2,8 +2,8 @@ "cells": [ { "cell_type": "code", - "execution_count": 9, - "id": "acee6c9f", + "execution_count": null, + "id": "7e1b78c3", "metadata": {}, "outputs": [], "source": [ @@ -12,14 +12,12 @@ }, { "cell_type": "code", - "execution_count": 10, - "id": "5349f28e", - "metadata": { - "scrolled": false - }, + "execution_count": null, + "id": "226ff072", + "metadata": {}, "outputs": [], "source": [ - "df_laptops = pd.read_csv('laptop_price.csv')" + "df_laptops = pd.read_csv('laptop_price.csv', encoding='latin1')" ] }, { @@ -1089,7 +1087,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "base", "language": "python", "name": "python3" }, @@ -1103,7 +1101,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.8" + "version": "3.13.5" }, "toc": { "base_numbering": 1, diff --git a/04.Filtering Data/2.Creating a Conditional Column from 2 Choices np.where().ipynb b/04.Filtering Data/2.Creating a Conditional Column from 2 Choices np.where().ipynb index 9a9668d..75d28a4 100644 --- a/04.Filtering Data/2.Creating a Conditional Column from 2 Choices np.where().ipynb +++ b/04.Filtering Data/2.Creating a Conditional Column from 2 Choices np.where().ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "id": "932b054d", "metadata": {}, "outputs": [], @@ -12,19 +12,19 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "af2b9d82", "metadata": { "scrolled": false }, "outputs": [], "source": [ - "df_laptops = pd.read_csv('laptop_price.csv')" + "df_laptops = pd.read_csv('laptop_price.csv', encoding='latin1')" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "id": "1d57c715", "metadata": { "scrolled": true @@ -141,7 +141,7 @@ "2 575.00 " ] }, - "execution_count": 3, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -160,7 +160,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "id": "25857fac", "metadata": {}, "outputs": [], @@ -178,7 +178,7 @@ "data": { "text/plain": [ "array(['Inexpensive', 'Inexpensive', 'Inexpensive', ..., 'Inexpensive',\n", - " 'Inexpensive', 'Inexpensive'], dtype='