Skip to content
1 hidden cell
Introduction to Data Science in Python
Introduction to Data Science in Python
Run the hidden code cell below to import the data used in this course.
1 hidden cell
Take Notes
Add notes about the concepts you've learned and code cells with code you want to keep.
Add your notes here
Logic formulas - cuando la columna tiene un nombre compuesto se coloca el nombre en [] Se debe escribir los nombres de las columnas de la misma forma que se encuentran en la data, si esta comienza con mayuscula entonces se escribe con mayuscula import pandas as pd
mpr = pd.read_csv('my_pet_records.csv') not_poodle = mpr[mpr['Dog Breed'] != 'Poodle'] print(not_poodle)
import pandas as pd
mpr = pd.read_csv('my_pet_records.csv')
still_missing = mpr[mpr.status =='Still Missing']
print(still_missing)
not_poodle = mpr[mpr['Dog Breed'] != 'Poodle']
print(not_poodle)Para crear un grafico se usan las funciones que estan en el cuadro de abajo
# From matplotlib, import pyplot under the alias plt
from matplotlib import pyplot as plt
# Plot Officer Deshaun's hours_worked vs. day_of_week
plt.plot(deshaun.day_of_week, deshaun.hours_worked)
# Display Deshaun's plot
plt.show()