Created
October 25, 2019 15:54
-
-
Save Neeratyoy/756877eb1a95c688efbc69bb836f15b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/html": [ | |
"<div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th>did</th>\n", | |
" <th>name</th>\n", | |
" <th>version</th>\n", | |
" <th>uploader</th>\n", | |
" <th>status</th>\n", | |
" <th>format</th>\n", | |
" <th>MajorityClassSize</th>\n", | |
" <th>MaxNominalAttDistinctValues</th>\n", | |
" <th>MinorityClassSize</th>\n", | |
" <th>NumberOfClasses</th>\n", | |
" <th>NumberOfFeatures</th>\n", | |
" <th>NumberOfInstances</th>\n", | |
" <th>NumberOfInstancesWithMissingValues</th>\n", | |
" <th>NumberOfMissingValues</th>\n", | |
" <th>NumberOfNumericFeatures</th>\n", | |
" <th>NumberOfSymbolicFeatures</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>61</th>\n", | |
" <td>61</td>\n", | |
" <td>iris</td>\n", | |
" <td>1</td>\n", | |
" <td>1</td>\n", | |
" <td>active</td>\n", | |
" <td>ARFF</td>\n", | |
" <td>50.0</td>\n", | |
" <td>3.0</td>\n", | |
" <td>50.0</td>\n", | |
" <td>3.0</td>\n", | |
" <td>5.0</td>\n", | |
" <td>150.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>4.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>41950</th>\n", | |
" <td>41950</td>\n", | |
" <td>iris_test_upload</td>\n", | |
" <td>1</td>\n", | |
" <td>4030</td>\n", | |
" <td>active</td>\n", | |
" <td>ARFF</td>\n", | |
" <td>50.0</td>\n", | |
" <td>3.0</td>\n", | |
" <td>50.0</td>\n", | |
" <td>3.0</td>\n", | |
" <td>5.0</td>\n", | |
" <td>150.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>4.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>451</th>\n", | |
" <td>451</td>\n", | |
" <td>irish</td>\n", | |
" <td>1</td>\n", | |
" <td>2</td>\n", | |
" <td>active</td>\n", | |
" <td>ARFF</td>\n", | |
" <td>278.0</td>\n", | |
" <td>10.0</td>\n", | |
" <td>222.0</td>\n", | |
" <td>2.0</td>\n", | |
" <td>6.0</td>\n", | |
" <td>500.0</td>\n", | |
" <td>32.0</td>\n", | |
" <td>32.0</td>\n", | |
" <td>2.0</td>\n", | |
" <td>4.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>969</th>\n", | |
" <td>969</td>\n", | |
" <td>iris</td>\n", | |
" <td>3</td>\n", | |
" <td>2</td>\n", | |
" <td>active</td>\n", | |
" <td>ARFF</td>\n", | |
" <td>100.0</td>\n", | |
" <td>2.0</td>\n", | |
" <td>50.0</td>\n", | |
" <td>2.0</td>\n", | |
" <td>5.0</td>\n", | |
" <td>150.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>4.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>41510</th>\n", | |
" <td>41510</td>\n", | |
" <td>iris</td>\n", | |
" <td>9</td>\n", | |
" <td>348</td>\n", | |
" <td>active</td>\n", | |
" <td>ARFF</td>\n", | |
" <td>NaN</td>\n", | |
" <td>3.0</td>\n", | |
" <td>NaN</td>\n", | |
" <td>NaN</td>\n", | |
" <td>5.0</td>\n", | |
" <td>150.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>0.0</td>\n", | |
" <td>4.0</td>\n", | |
" <td>1.0</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" did name version uploader status format \\\n", | |
"61 61 iris 1 1 active ARFF \n", | |
"41950 41950 iris_test_upload 1 4030 active ARFF \n", | |
"451 451 irish 1 2 active ARFF \n", | |
"969 969 iris 3 2 active ARFF \n", | |
"41510 41510 iris 9 348 active ARFF \n", | |
"\n", | |
" MajorityClassSize MaxNominalAttDistinctValues MinorityClassSize \\\n", | |
"61 50.0 3.0 50.0 \n", | |
"41950 50.0 3.0 50.0 \n", | |
"451 278.0 10.0 222.0 \n", | |
"969 100.0 2.0 50.0 \n", | |
"41510 NaN 3.0 NaN \n", | |
"\n", | |
" NumberOfClasses NumberOfFeatures NumberOfInstances \\\n", | |
"61 3.0 5.0 150.0 \n", | |
"41950 3.0 5.0 150.0 \n", | |
"451 2.0 6.0 500.0 \n", | |
"969 2.0 5.0 150.0 \n", | |
"41510 NaN 5.0 150.0 \n", | |
"\n", | |
" NumberOfInstancesWithMissingValues NumberOfMissingValues \\\n", | |
"61 0.0 0.0 \n", | |
"41950 0.0 0.0 \n", | |
"451 32.0 32.0 \n", | |
"969 0.0 0.0 \n", | |
"41510 0.0 0.0 \n", | |
"\n", | |
" NumberOfNumericFeatures NumberOfSymbolicFeatures \n", | |
"61 4.0 1.0 \n", | |
"41950 4.0 1.0 \n", | |
"451 2.0 4.0 \n", | |
"969 4.0 1.0 \n", | |
"41510 4.0 1.0 " | |
] | |
}, | |
"execution_count": 4, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"# Filtering dataset list to have 'iris' in the 'name' column\n", | |
"# then sorting the list based on the 'version'\n", | |
"d[d['name'].str.contains('iris')].sort_values(by='version').head()" | |
] | |
} | |
], | |
"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.6.8" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment