Created
January 9, 2019 16:06
-
-
Save djego/846d976958085057c7545ad610286f1f to your computer and use it in GitHub Desktop.
La tacuen
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": 1, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import pandas as pd" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Lista de deudores del Caldo de Gallina " | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"cafeteros = pd.DataFrame({\n", | |
" \"Nombres\": [\"Renzo\",\"J Guillermo\",\"Fabricio\",\"Diego\",\"Carlos\",\"Fernando\",\"Halley\"],\n", | |
" \"Alias\": [\"Telenta\",\"Guishe\",\"Fabric\",\"Mr. D\",\"Charlitos\",\"Nando\",\"Cometa\"],\n", | |
" \"Monto\": [10,10,10,10,13,10,10],\n", | |
" \"Estado\": [\"Pago\",\"Debe\",\"Debe\",\"Pago\",\"Debe\",\"Debe\",\"Debe\"]\n", | |
"})" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"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>Nombres</th>\n", | |
" <th>Alias</th>\n", | |
" <th>Monto</th>\n", | |
" <th>Estado</th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th>1</th>\n", | |
" <td>J Guillermo</td>\n", | |
" <td>Guishe</td>\n", | |
" <td>10</td>\n", | |
" <td>Debe</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>2</th>\n", | |
" <td>Fabricio</td>\n", | |
" <td>Fabric</td>\n", | |
" <td>10</td>\n", | |
" <td>Debe</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>4</th>\n", | |
" <td>Carlos</td>\n", | |
" <td>Charlitos</td>\n", | |
" <td>13</td>\n", | |
" <td>Debe</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>5</th>\n", | |
" <td>Fernando</td>\n", | |
" <td>Nando</td>\n", | |
" <td>10</td>\n", | |
" <td>Debe</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>6</th>\n", | |
" <td>Halley</td>\n", | |
" <td>Cometa</td>\n", | |
" <td>10</td>\n", | |
" <td>Debe</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" Nombres Alias Monto Estado\n", | |
"1 J Guillermo Guishe 10 Debe\n", | |
"2 Fabricio Fabric 10 Debe\n", | |
"4 Carlos Charlitos 13 Debe\n", | |
"5 Fernando Nando 10 Debe\n", | |
"6 Halley Cometa 10 Debe" | |
] | |
}, | |
"execution_count": 7, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"cafeteros.loc[cafeteros['Estado'] == \"Debe\"]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"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.7.1" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment