diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..c1b7239 Binary files /dev/null and b/.DS_Store differ diff --git a/big_countries.ipynb b/big_countries.ipynb new file mode 100644 index 0000000..b8fec01 --- /dev/null +++ b/big_countries.ipynb @@ -0,0 +1,21 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "c3df2908", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "\n", + "# Assume 'world' DataFrame is already defined\n", + "big_countries = world[(world['area'] >= 300000) | (world['population'] >= 25000000)][['name', 'population', 'area']]\n", + "big_countries\n" + ] + } + ], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/customersneverorder.ipynb b/customersneverorder.ipynb new file mode 100644 index 0000000..5b5e0b7 --- /dev/null +++ b/customersneverorder.ipynb @@ -0,0 +1,21 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "f81924e7", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "\n", + "# Assume 'Customers' and 'Orders' DataFrames are already defined\n", + "result = Customers[~Customers['id'].isin(Orders['customerId'])][['name']]\n", + "result\n" + ] + } + ], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/dataframe.ipynb b/dataframe.ipynb new file mode 100644 index 0000000..6d8ad3d --- /dev/null +++ b/dataframe.ipynb @@ -0,0 +1,26 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "baede9fb", + "metadata": {}, + "outputs": [], + "source": [ + "# import pandas as pd \n", + "import pandas as pd \n", + "\n", + "# List1 \n", + "lst = [['Geek', 25], ['is', 30], \n", + " ['for', 26], ['Geeksforgeeks', 22]] \n", + "\n", + "# creating df object with columns specified \n", + "df = pd.DataFrame(lst, columns =['Tag', 'number']) \n", + "print(df )" + ] + } + ], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/recylable lowfat.ipynb b/recylable lowfat.ipynb new file mode 100644 index 0000000..28a7a45 --- /dev/null +++ b/recylable lowfat.ipynb @@ -0,0 +1,21 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "1a96a26c", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "\n", + "# Assume 'products' DataFrame is already defined\n", + "result = products[(products['low_fats'] == 'Y') & (products['recyclable'] == 'Y')]\n", + "result\n" + ] + } + ], + "metadata": {}, + "nbformat": 4, + "nbformat_minor": 5 +}