Code
dataframe[fila, columna]En este capítulo aprenderemos cómo filtrar, seleccionar y transformar datos en R. Primero veremos la indexación básica y después utilizaremos dplyr para manipular la base de datos de manera más sencilla y eficiente.
La indexación permite acceder a partes específicas de un data frame, ya sea por posición, por nombre o usando condiciones lógicas. Es una herramienta fundamental antes de usar paquetes más avanzados.
[ ]La sintaxis básica es:
dataframe[fila, columna]dataframe[1, ] → primera filadataframe[, 3] → tercera columnadataframe[1:5, 1:2] → filas 1 a 5 y columnas 1 y 2Ejemplo:
hp_data[ , 2] [1] "Harry James Potter"
[2] "Ronald Bilius Weasley"
[3] "Hermione Jean Granger"
[4] "Albus Percival Wulfric Brian Dumbledore"
[5] "Rubeus Hagrid"
[6] "Neville Longbottom"
[7] "..."
[8] "Septima Vector"
[9] "Wilhelmina Grubbly-Plank"
[10] "Fenrir Greyback"
[11] "Gellert Grindelwald"
[12] "Dobby"
[13] "Kreacher"
Otra forma de seleccionar una columna es por el medio del nombre que tiene:
hp_data[ , "Name"] [1] "Harry James Potter"
[2] "Ronald Bilius Weasley"
[3] "Hermione Jean Granger"
[4] "Albus Percival Wulfric Brian Dumbledore"
[5] "Rubeus Hagrid"
[6] "Neville Longbottom"
[7] "..."
[8] "Septima Vector"
[9] "Wilhelmina Grubbly-Plank"
[10] "Fenrir Greyback"
[11] "Gellert Grindelwald"
[12] "Dobby"
[13] "Kreacher"
Si no pones nada antes o después de la coma dentro de los corchetes, R retorna todas las filas o todas las columnas, respectivamente.
hp_data[ , ] → devuelve todo el data frame (filas y columnas).
hp_data[ , 3] → devuelve todas las filas de la columna en posición 3.
hp_data[5, ] → devuelve todas las columnas de la fila 5.
$Además de la selección de columnas con los corchetes [ ], podemos utilizar $ y acceder por su nombre:
Podemos seleccionar la columna Name y la columna House, respectivamente.
hp_data$Name
hp_data$House| Name |
|---|
| Harry James Potter |
| Ronald Bilius Weasley |
| Hermione Jean Granger |
| Albus Percival Wulfric Brian Dumbledore |
| Rubeus Hagrid |
| Neville Longbottom |
| Fred Weasley |
| George Weasley |
| Ginevra (Ginny) Molly Weasley |
| Dean Thomas |
| Seamus Finnigan |
| Lily J. Potter |
| James Potter |
| Sirius Black |
| Remus John Lupin |
| Peter Pettigrew |
| Percy Ignatius Weasley |
| (Bill) William Arthur Weasley |
| Charles Weasley |
| Lee Jordan |
| Oliver Wood |
| Angelina Johnson |
| Katie Bell |
| Alicia Spinnet |
| Lavender Brown |
| Parvati Patil |
| Romilda Vane |
| Colin Creevey |
| Cormac McLaggen |
| Minerva McGonagall |
| Molly Weasley |
| Arthur Weasley |
| Quirinus Quirrell |
| Cho Chang |
| Luna Lovegood |
| Gilderoy Lockhart |
| Filius Flitwick |
| Sybill Patricia Trelawney |
| Garrick Ollivander |
| Myrtle Elizabeth Warren (Moaning Myrtle) |
| Padma Patil |
| Michael Corner |
| Marietta Edgecombe |
| Terry Boot |
| Anthony Goldstein |
| Severus Snape |
| Draco Malfoy |
| Vincent Crabbe |
| Gregory Goyle |
| Bellatrix Lestrange |
| Dolores Jane Umbridge |
| Horace Eugene Flaccus Slughorn |
| Lucius Malfoy |
| Narcissa Malfoy |
| Regulus Arcturus Black |
| Pansy Parkinson |
| Blaise Zabini |
| Tom Marvolo Riddle |
| Theodore Nott |
| Rodolphus Lestrange |
| Millicent Bulstrode |
| Graham Montague |
| Bloody Baron |
| Marcus Flint |
| Penelope Clearwater |
| Roger Davies |
| Marcus Belby |
| Salazar Slytherin |
| Godric Gryffindor |
| Rowena Ravenclaw |
| Nicholas de Mimsy-Porpington |
| Cuthbert Binns |
| Barty Crouch Jr. |
| Charity Burbage |
| Firenze |
| Alecto Carrow |
| Amycus Carrow |
| Helga Hufflepuff |
| Fat Friar |
| Helena Ravenclaw |
| Nymphadora Tonks |
| Pomona Sprout |
| Newton Scamander |
| Cedric Diggory |
| Justin Finch-Fletchley |
| Zacharias Smith |
| Hannah Abbott |
| Ernest Macmillan |
| Susan Bones |
| Walden Macnair |
| Augustus Rookwood |
| Antonin Dolohov |
| Corban Yaxley |
| Igor Karkaroff |
| Kingsley Shacklebolt |
| Alastor Moody |
| Alice Longbottom |
| Frank Longbottom |
| Rufus Scrimgeour |
| Cornelius Oswald Fudge |
| Barty Crouch Sr. |
| Amos Diggory |
| Dedalus Diggle |
| Elphias Doge |
| Fleur Isabelle Delacour |
| Aberforth Dumbledore |
| Mundungus Fletcher |
| Sturgis Podmore |
| Hestia Jones |
| Marlene McKinnon |
| Fabian Prewett |
| Gideon Prewett |
| Emmeline Vance |
| Edgar Bones |
| Dorcas Meadowes |
| Benjy Fenwick |
| Madame Olympe Maxime |
| Gabrielle Delacour |
| Viktor Krum |
| Petunia Dursley |
| Vernon Dursley |
| Dudley Dursley |
| Marge Dursley |
| Dennis Creevey |
| Albus Severus Potter |
| Scorpius Hyperion Malfoy |
| Edward Remus Lupin |
| James Sirius Potter |
| Rose Granger-Weasley |
| Argus Filch |
| Poppy Pomfrey |
| Rolanda Hooch |
| Irma Pince |
| Aurora Sinistra |
| Septima Vector |
| Wilhelmina Grubbly-Plank |
| Fenrir Greyback |
| Gellert Grindelwald |
| Dobby |
| Kreacher |
| House |
|---|
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Gryffindor |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Ravenclaw |
| Ravenclaw |
| Ravenclaw |
| Slytherin |
| Gryffindor |
| Ravenclaw |
| Gryffindor |
| Slytherin |
| Slytherin |
| Hufflepuff |
| Hufflepuff |
| Ravenclaw |
| Hufflepuff |
| Hufflepuff |
| Hufflepuff |
| Hufflepuff |
| Hufflepuff |
| Hufflepuff |
| Hufflepuff |
| Hufflepuff |
| Hufflepuff |
| Slytherin |
| Slytherin |
| Slytherin |
| Slytherin |
| Gryffindor |
| Beauxbatons Academy of Magic |
| Hufflepuff |
| Beauxbatons Academy of Magic |
| Beauxbatons Academy of Magic |
| Durmstrang Institute |
| Gryffindor |
| Slytherin |
| Slytherin |
| Hufflepuff |
| Gryffindor |
| Gryffindor |
También puedes usarlo para crear vectores o filtrar, como veremos más adelante.
Son fundamentales para extraer subconjuntos de datos.
hp_data no incluye variables numéricas, por lo que estos ejemplos no se ejecutan, pero se muestran para ilustrar la sintaxis.
> mayor que# Ejemplo hipotético: columna Age (no existe en hp_data)
# Personajes mayores a 32
hp_data[hp_data$Age > 18, ]< menor que# Otro ejemplo hipotético:
# Personajes menores a 32
hp_data[hp_data$Age < 32, ]== igual# Personajes nacidos de padres muggles
hp_data[hp_data$Blood.status == "Muggle-born", ]| Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3 | 3 | Hermione Jean Granger | Female | Student | Gryffindor | 10¾" vine wood dragon heartstring | Otter | Human | Muggle-born | Brown | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Almost everything | 19 September, 1979 | |
| 10 | 10 | Dean Thomas | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Black | Brown | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1979- 31 August 1980 | |
| 12 | 12 | Lily J. Potter | Female | Gryffindor | 10¼" Willow unknown core | Doe | Human | Muggle-born | Auburn | Bright green | Order of the Phoenix | 30 January, 1960 | 31 October, 1981 | ||
| 28 | 28 | Colin Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Photography | 3 May - 31 August 1981 | 2 May, 1998 | |
| 40 | 40 | Myrtle Elizabeth Warren (Moaning Myrtle) | Female | Student | Ravenclaw | Unknown | Unknown | Ghost | Muggle-born | 14 June 1928 -13 June 1929 | 13 June, 1943 | ||||
| 85 | 85 | Justin Finch-Fletchley | Male | Student | Hufflepuff | Unknown | Non-corporeal | Human | Muggle-born | Red | Dumbledore's Army | 1 September 1979- 31 August 1980 | |||
| 124 | 124 | Dennis Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy brown | Dumbledore's Army | 1 September 1982 - 31 August 1983 |
!= diferente# Personajes que NO son de Gryffindor
hp_data[hp_data$House != "Gryffindor", ]| Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 33 | 33 | Quirinus Quirrell | Male | Defence Against the Dark Arts(1991-1992) | Ravenclaw | 9" Alder unicorn hair bendy | Non-corporeal | Human | Half-blood | Lord Voldemort | Learned in the theory of Defensive Magic| less adept in the practise | 26 September,1970 or earlier | 4 June 1992 | ||
| 34 | 34 | Cho Chang | Female | Student | Ravenclaw | Unknown | Swan | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Seeker | 1 September 1978-31 August 1979 | |
| 35 | 35 | Luna Lovegood | Female | Student | Ravenclaw | Unknown | Hare | Human | Pure-blood or half-blood | Dirty-blonde | Pale silvery | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spotting Nargles | 13 February, 1981 | |
| 36 | 36 | Gilderoy Lockhart | Male | Defence Against the Dark Arts(1992-1993) | Ravenclaw | 9" Cherry dragon heartstring | Non-corporeal | Human | Half-blood | Blond | Blue | 26 January 1964 | |||
| 37 | 37 | Filius Flitwick | Male | Professor of Charms | Head of Ravenclaw | Ravenclaw | Unknown | Non-corporeal | Human(goblin ancestry) | Part-Goblin | White | Charms | 17 October 1958 or earlier | |||
| 38 | 38 | Sybill Patricia Trelawney | Female | Professor of Divination | Ravenclaw | 9 ½” hazel unicorn hair core | Non-corporeal | Human | Half-blood | A Seer, though the gift is unpredictable and unconscious | 9 March prior to 1962 | ||||
| 39 | 39 | Garrick Ollivander | Male | Wandmaker | Ravenclaw | 12¾" Hornbeam dragon heartstring | Non-corporeal | Human | Half-blood | Silvery | An incomparable understanding of wandcraft | 25 September, pre 1908 | |||
| 40 | 40 | Myrtle Elizabeth Warren (Moaning Myrtle) | Female | Student | Ravenclaw | Unknown | Unknown | Ghost | Muggle-born | 14 June 1928 -13 June 1929 | 13 June, 1943 | ||||
| 41 | 41 | Padma Patil | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979 - 21 April 1980 | |
| 42 | 42 | Michael Corner | Male | Student | Ravenclaw | Unknown | Squirrel | Human | Half-blood | Black | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions | 1 September 1979 - 31 August 1980 | |
| 43 | 43 | Marietta Edgecombe | Female | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-blonde | Grey | Covering up the spots that blight her face after betraying Dumbledore's Army | 1978-1979 | ||
| 44 | 44 | Terry Boot | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions, also knowledgable about Charms | 1 September 1979- 21 April 1980 | |||
| 45 | 45 | Anthony Goldstein | Male | Student | Ravenclaw | Unknown | Non-corporeal | Human | Half-blood | Blonde | Grey | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979- 31 August 1980 | |
| 46 | 46 | Severus Snape | Male | Professor of Potions | Head of Slytherin | Slytherin | Unknown | Doe | Human | Half-blood | Black | Black | Extremely skilled at potions and Occlumency | 9 January 1960 | 2 May, 1998 | |
| 47 | 47 | Draco Malfoy | Male | Student | Slytherin | 10" Hawthorn unicorn hair | Unknown | Human | Pure-blood | White-blond | Grey | Prefect, Seeker | 5 June, 1980 | ||
| 48 | 48 | Vincent Crabbe | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Black | Black | Beater | c. 1979-1980 | 2 May, 1998 | |
| 49 | 49 | Gregory Goyle | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | Beater | 1 September 1979-31 August 1980 | |||
| 50 | 50 | Bellatrix Lestrange | Female | Slytherin | 12¾" Walnut dragon heartstring | Human | Pure-blood | Black | Lord Voldemort | Death Eaters | She is a duellist of great skill and an experienced Occlumens | 1951 | 2 May, 1998 | |||
| 51 | 51 | Dolores Jane Umbridge | Female | Professor of Defence Against the Dark Arts | Department of Magical Law Enforcement | Slytherin | 8" Birch dragon heartstring | Cat | Human | Half-blood | Iron grey | Ministry of Magic | Her punishment quill is of her own invention | 26 August | ||
| 52 | 52 | Horace Eugene Flaccus Slughorn | Professor of Potions | Slytherin | 10¼" Cedar dragon heartstring fairly flexible | Non-corporeal | Human | Pure-blood or half-blood | Bald | Gooseberry | Accomplished Occlumens, expert Potioneer, advanced self-transfiguration | 28 April | |||
| 53 | 53 | Lucius Malfoy | Male | School Governor | Slytherin | Elm and dragon heartstring | Unknown | Human | Pure-blood | White-blond | Grey | Lord Voldemort | Death Eaters | Skilled duellist and potioneer | c. 1954 | |
| 54 | 54 | Narcissa Malfoy | Female | Slytherin | Unknown | Unknown | Human | Pure-blood | Blonde | Blue | Lord Voldemort | Death Eaters | 1955 | |||
| 55 | 55 | Regulus Arcturus Black | Male | Slytherin | Unknown | Non-corporeal | Human | Pure-blood | Black | Seeker | 1961 | 1979 | |||
| 56 | 56 | Pansy Parkinson | Female | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Prefect | 1 September 1979- 31 August 1980 | ||||
| 57 | 57 | Blaise Zabini | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Chaser | 1 September, 1979 – 21 April, 1980 | ||
| 58 | 58 | Tom Marvolo Riddle | Male | Student | Slytherin | 13½" Yew phoenix feather core | Unknown | Human | Half-blood | Bald | Scarlet | Dark Lord, Outstanding manipulation, Parseltongue, Heir of Slytherin, Dark magic, Inferi creation and control | 31 December 1926 | 2 May, 1998 | |
| 59 | 59 | Theodore Nott | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | 1 September, 1979 – 21 April, 1980 | ||||
| 60 | 60 | Rodolphus Lestrange | Male | Slytherin | Unknown | Unknown | Human | Pure-blood | Dark | Dark | Lord Voldemort | Death Eaters | Pre 1964 | |||
| 61 | 61 | Millicent Bulstrode | Female | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Black | 1 September 1979- 31 August 1980 | ||||
| 62 | 62 | Graham Montague | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Quidditch captain, Chaser | In or prior to c.1981 | ||
| 63 | 63 | Bloody Baron | Male | Slytherin House Ghost | Slytherin | Unknown | Unknown | Ghost | Pure-blood or half-blood | Controlling Peeves | Post 982 | 11th century | |||
| 64 | 64 | Marcus Flint | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Chaser, Captain | 1 September 1975- 31 August 1976 | |||
| 65 | 65 | Penelope Clearwater | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Muggle-born or half-blood[ | Blonde | Prefect | 1 September 1975- 31 August 1976 | |||
| 66 | 66 | Roger Davies | Male | Student | Ravenclaw | Unknown | Unknown | Human | Dark | Dark | Quidditch Captain, Chaser | 1 September 1977- 31 August 1978 | |||
| 67 | 67 | Marcus Belby | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Dark | 1 September 1978 - 31 August 1979 | |||
| 68 | 68 | Salazar Slytherin | Male | Founder of Slytherin | Slytherin | snakewood, Basilisk horn | Unknown | Human | Pure-blood | Grey | Dark | Accomplished Legilimens and one of the first recorded Parselmouths | Pre 976 | 11th century | |
| 70 | 70 | Rowena Ravenclaw | Female | Founder of Ravenclaw | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Extremely skilled witch, known for her intelligence and wisdom | Pre 976 | 11th century | |
| 72 | 72 | Cuthbert Binns | Male | Professor of History of Magic | Unknown | Unknown | Ghost | White (balding) | Black | Boring a class with facts that might be interesting if anyone else was giving the lesson | Pre 1970s | ||||
| 73 | 73 | Barty Crouch Jr. | Male | Professor of Defence Against the Dark Arts (as Alastor Moody) | Unknown | Unknown | Human | Pure-blood or half-blood | Straw blond | Pale, freckled | Lord Voldemort | Death Eaters | Skilled potioneer | 1962 | 1995-1996 | |
| 74 | 74 | Charity Burbage | Female | Professor of Muggle Studies | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Blonde | Teaching and studying the Muggle world | Before 1976 | Late July, 1997 | |||
| 75 | 75 | Firenze | Male | Professor of Divination | Centaur | White-blond | Astonishingly blue | ||||||||
| 76 | 76 | Alecto Carrow | Female | Professor of Muggle Studies | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Spreading anti-Muggle propaganda | Pre 1981 | |||
| 77 | 77 | Amycus Carrow | Male | Professor of Dark Arts | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Cruciatus Curse | Pre 1982 | |||
| 78 | 78 | Helga Hufflepuff | Female | Founder of Hufflepuff | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Blue | Food-related Charms. Many traditional Hogwarts recipes originated with her | Pre 976 | 11th century | |
| 79 | 79 | Fat Friar | Male | Hufflepuff House Ghost | Hufflepuff | Unknown | Unknown | Ghost | Brown | Curing peasants of the pox | 10th century | Pre 1988 | |||
| 80 | 80 | Helena Ravenclaw | Female | Ravenclaw House Ghost | Ravenclaw | Unknown | Unknown | Ghost | Pure-blood or half-blood | Black | Grey | Post 982 | 996-1000 | ||
| 81 | 81 | Nymphadora Tonks | Female | Auror | Hufflepuff | Unknown | Jack rabbit, Wolf | Human | Half-blood | Variable | Variable | Ministry of Magic | Order of the Phoenix | Talented Auror, Metamorphmagus | 1 September 1972- 31 August 1973 | 2 May, 1998 |
| 82 | 82 | Pomona Sprout | Female | Professor of Herbology | Head of Hufflepuff House | Hufflepuff | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Grey | Herbology | 15 May | |||
| 83 | 83 | Newton Scamander | Male | Employee in the Beast Division of the Department for the Regulation and Control of Magical Creatures | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Red brown | Blue | Magizoology, Order of Merlin, Second Class | 24 February 1897 | ||
| 84 | 84 | Cedric Diggory | Male | Student | Hufflepuff | 12¼", Ash, unicorn hair | Unknown | Human | Pure-blood | Dark | Grey | Skilled Seeker | 1 September - 30 October 1977 | 24 June, 1995 | |
| 85 | 85 | Justin Finch-Fletchley | Male | Student | Hufflepuff | Unknown | Non-corporeal | Human | Muggle-born | Red | Dumbledore's Army | 1 September 1979- 31 August 1980 | |||
| 86 | 86 | Zacharias Smith | Male | Student | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Blonde | Dumbledore's Army | Chaser | 1 September 1979 - 2 May 1981 | ||
| 87 | 87 | Hannah Abbott | Female | Student | Hufflepuff | Unknown | Non-corporeal | Human | Half-blood | Blonde | Brown | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | |
| 88 | 88 | Ernest Macmillan | Male | Student | Hufflepuff | Unknown | Boar | Human | Pure-blood | Blond | Dumbledore's Army | Revising, being a Prefect, getting the wrong end of the stick | 21 April 1980 - 31 August 1980 | ||
| 89 | 89 | Susan Bones | Female | Student | Hufflepuff | Unknown | Unknown | Human | Half-blood | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | |||
| 90 | 90 | Walden Macnair | Male | Executioner for the Committee for the Disposal of Dangerous Creatures | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Lord Voldemort | Death Eaters | Liaising with giants | In or before 1970s | ||
| 91 | 91 | Augustus Rookwood | Male | Unspeakable | Slytherin | Unknown | None | Human | Pure-blood or half-blood | Brown/greying | Lord Voldemort | Death Eaters | Spying for Lord Voldemort | pre 1964 | ||
| 92 | 92 | Antonin Dolohov | Male | Death Eater | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Dark | Lord Voldemort | Death Eaters | Duelling. Fought and killed Molly Weasley's brothers and Remus Lupin | pre 1950 | ||
| 93 | 93 | Corban Yaxley | Male | Head of the Department of Magical Law Enforcement | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Blonde | Blue | Lord Voldemort | Death Eaters | Imperius curse, undercover work | Pre 1970s | |
| 94 | 94 | Igor Karkaroff | Male | Headmaster of Durmstrang Institute | Unknown | None | Human | Pure-blood or Half-blood | Silver| formerly black | Skilled in the Dark Arts | pre 1965 | 24 June, 1995 – 31 July, 1996 | |||
| 95 | 95 | Kingsley Shacklebolt | Male | Auror | Minister for Magic | Unknown | Lynx | Human | Pure-blood | Bald | Black | Order of the Phoenix | Exceptionally skilled duellist and Auror | Pre 1973 | ||
| 96 | 96 | Alastor Moody | Male | Auror | Unknown | Non-corporeal | Human | Pure-blood | Grey | One dark, one electric blue | Order of the Phoenix | A highly accomplished Auror and an outstanding duellist, also skilled in non-verbal magic | Pre 1960 | 27 July, 1997 | |
| 97 | 97 | Alice Longbottom | Female | Auror | Unknown | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | ||||
| 99 | 99 | Rufus Scrimgeour | Male | Head of Auror Office| Minister for Magic | Unknown | Non-corporeal | Human | Tawny | Yellowish | Minister of Magic | Highly regarded as a skilled Auror | Pre 1968 | 1 August, 1997 | ||
| 100 | 100 | Cornelius Oswald Fudge | Male | Minister for Magic | Unknown | Non-corporeal | Human | Pure-blood or Half-blood | Grey | Minister of Magic | Turning a blind eye to the continuing threat of Dark Magic in the name of keeping up morale | Pre 1964 | |||
| 101 | 101 | Barty Crouch Sr. | Male | Head of the Department of International Magical Cooperation | Unknown | Non-corporeal | Human | Pure-blood | Grey | Minister of Magic | Multilingual, able to fight the Imperius curse | Pre 1940 | 27 May, 1995 | ||
| 102 | 102 | Amos Diggory | Male | Employee of the Department for the Regulation and Control of Magical Creatures[ | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Brown | Ruddy | Minister of Magic | Works for the Department for the Regulation and Control of Magical Creatures | |||
| 103 | 103 | Dedalus Diggle | Male | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Order of the Phoenix | An enthusiastic volunteer for the Order and a helpful escort for Harry and his relatives | Pre 1964 | |||||
| 104 | 104 | Elphias Doge | Male | Special Advisor to the Wizengamot | Unknown | Non-corporeal | Human | Pure-blood | Silver | Grey/Blue[ | Order of the Phoenix | Writing | 1 September 1880 - 31 August 1881 | ||
| 105 | 105 | Fleur Isabelle Delacour | Female | Part-time at Gringotts Wizarding Bank | Beauxbatons Academy of Magic | 9½", Rosewood, veela hair | Non-corporeal | Human | Quarter-Veela | Silvery-blonde | Dark blue[ | Order of the Phoenix | part Veela, and therefore possesses some of their magical powers. She was also selected to compete in the Triwizard Tournament | Pre 30 October, 1977 | |
| 106 | 106 | Aberforth Dumbledore | Male | Owner and Barman of the Hog's Head Inn | Unknown | Goat | Human | Half-blood | Grey | Bright Blue | Order of the Phoenix | Bartending, caring for Ariana | 1 September 1883-31 August 1884 | ||
| 107 | 107 | Mundungus Fletcher | Male | Dealer of wizarding artifacts | Unknown | Non-corporeal | Human | Half-blood[ | Ginger | Brown | Order of the Phoenix | Gathering information for the Order, dealing in stolen cauldrons, 'acquiring' the odd Muggle car | Before 1962 | ||
| 108 | 108 | Sturgis Podmore | Male | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Straw-coloured | Brown | Order of the Phoenix | Carrying out guard duty for the Order | 8 September 1956 - 7 September 1957 | ||
| 109 | 109 | Hestia Jones | Female | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Order of the Phoenix | Carrying out escort missions for the Order | Pre 1978 | |||
| 110 | 110 | Marlene McKinnon | Female | Unknown | Unknown | Human | Red | Brown | Original Order of the Phoenix | July, 1981 | |||||
| 111 | 111 | Fabian Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Grey | Original Order of the Phoenix | Duelling | 1981 | |||
| 112 | 112 | Gideon Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Dark Grey | Original Order of the Phoenix | Duelling | 1981 | |||
| 113 | 113 | Emmeline Vance | Female | Advance Guard | Unknown | Unknown | Human | Order of the Phoenix | pre 1964 | Early July, 1996 | |||||
| 114 | 114 | Edgar Bones | Male | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-brown | Grey | Original Order of the Phoenix | Said to be a great wizard | 1981 | ||
| 115 | 115 | Dorcas Meadowes | Female | Unknown | Unknown | Human | Black | Brown | Original Order of the Phoenix | 1981 | |||||
| 116 | 116 | Benjy Fenwick | Male | Unknown | Unknown | Human | Black | Black | Original Order of the Phoenix | 1981 | |||||
| 117 | 117 | Madame Olympe Maxime | Female | Headmistress of Beauxbatons Academy of Magic | Beauxbatons Academy of Magic | Unknown | Unknown | Half-Human/Half-Giant | Part-Human (Half-giant) | Brown | Black | An ‘excellent dancer’, in the words of Dumbledore himself | |||
| 118 | 118 | Gabrielle Delacour | Female | Beauxbatons Academy of Magic | Unknown | Unknown | Human | Quarter-Veela | Silvery-blonde | part Veela and therefore may possess some of their magical powers | 31 July 1985 - 30 July 1986 | ||||
| 119 | 119 | Viktor Krum | Male | Seeker for the Bulgarian National Quidditch team | Durmstrang Institute | 10¼", Hornbeam, dragon heartstring | Unknown | Human | Pure-blood or half-blood | Dark | Dark | One of the best Seekers in the world | April-August, 1976 | ||
| 120 | 120 | Petunia Dursley | Female | Human | Muggle | Blonde | Pre 1960 | ||||||||
| 121 | 121 | Vernon Dursley | Male | Director at Grunnings | Human | Muggle | Black | Schmoozing clients, pretending magic doesn't exist | Pre 1954 | ||||||
| 122 | 122 | Dudley Dursley | Male | Human | Muggle | Blond | Blue | 23 June 1980 | |||||||
| 123 | 123 | Marge Dursley | Female | Dog breeder | Human | Muggle | Grey | Breeding bulldogs | Pre 1954 | ||||||
| 125 | 125 | Albus Severus Potter | Male | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Jet-black | Bright green | Between 1 September 2005-31 August 2006 | |||
| 126 | 126 | Scorpius Hyperion Malfoy | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | White blond | Grey | Between 1 September 2005-31 August 2007 | |||
| 127 | 127 | Edward Remus Lupin | Male | Student | Hufflepuff | Unknown | Unknown | Human (Metamorphmagus) | Half-blood | Variable | Variable | April, 1998 | |||
| 130 | 130 | Argus Filch | Male | Caretaker of Hogwarts | Human | Squib | Grey | Pale | Hogwarts School of Witchcraft and Wizardry | Sniffing out mischief | Pre 1951 | ||||
| 131 | 131 | Poppy Pomfrey | Female | Matron at Hogwarts School | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Hogwarts School of Witchcraft and Wizardry | Skilled medical healer | pre 1954 | ||||
| 132 | 132 | Rolanda Hooch | Female | Flying Instructor at Hogwarts | Unknown | Non-corporeal | Human | Grey | Yellow | Hogwarts School of Witchcraft and Wizardry | Teaching, flying, refereeing Quidditch matches | pre 1918 | |||
| 133 | 133 | Irma Pince | Female | Librarian at Hogwarts | Unknown | Non-corporeal | Human | Hogwarts School of Witchcraft and Wizardry | Pre 1966 | ||||||
| 134 | 134 | Aurora Sinistra | Female | Astronomer at Hogwarts | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Hogwarts School of Witchcraft and Wizardry | Pre 1968 | |||
| 135 | 135 | Septima Vector | Female | Professor of Arithmancyat Hogwarts | Unknown | Unknown | Human | Black | Hogwarts School of Witchcraft and Wizardry | Before 1974 | |||||
| 136 | 136 | Wilhelmina Grubbly-Plank | Female | Substitute professor of Care of Magical Creatures at Hogwarts | Unknown | Non-corporeal | Human | Grey | Hogwarts School of Witchcraft and Wizardry | ||||||
| 137 | 137 | Fenrir Greyback | Male | Unknown | None | Werewolf | Grey | Lord Voldemort | Death Eaters | Physical combat | Pre 1945 | |||||
| 138 | 138 | Gellert Grindelwald | Male | Revolutionary leader(c. 1920s[6] – 1945) | 15", Elder, Thestral tail hair core | Human | Pure-blood or half-blood | Blond | Blue | Gellert Grindelwald's Acolytes | Duelling | 1883 | March, 1998 | ||
| 139 | 139 | Dobby | Male | Malfoy family's house-elf (? - 1993), Hogwarts kitchens worker (December 1994 - 1998) | | | | | | | |House elf | | | |Green | | | | | |A type of magic specific to house-elves, performed without a wand which includes the ability to apparate, disarm and make objects levitate | |28 June | |Late March, 1998 |
| 140 | 140 | Kreacher | Male | Black family's house-elf (?-1996), Harry Potter's house-elf, Hogwarts kitchen worker | | | | | | | |House elf | | | |White | | | | | |Magic performed without a wand which includes the ability to apparate, disarm and make objects levitate | | | | |
%in% pertenece a un conjunto# Personajes que pertenecen a las casas de Gryffindor y Hufflepuff
hp_data[hp_data$House %in% c("Gryffindor", "Hufflepuff"), ]| Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | Harry James Potter | Male | Student | Gryffindor | 11" Holly phoenix feather | Stag | Human | Half-blood | Black | Bright green | Albus Dumbledore | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Parseltongue| Defence Against the Dark Arts | Seeker | 31 July 1980 | |
| 2 | 2 | Ronald Bilius Weasley | Male | Student | Gryffindor | 12" Ash unicorn tail hair | Jack Russell terrier | Human | Pure-blood | Red | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Wizard chess | Quidditch goalkeeping | 1 March 1980 | |
| 3 | 3 | Hermione Jean Granger | Female | Student | Gryffindor | 10¾" vine wood dragon heartstring | Otter | Human | Muggle-born | Brown | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Almost everything | 19 September, 1979 | |
| 4 | 4 | Albus Percival Wulfric Brian Dumbledore | Male | Headmaster | Gryffindor | 15" Elder Thestral tail hair core | Phoenix | Human | Half-blood | Silver| formerly auburn | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Considered by many to be one of the most powerful wizards of his time | Late August 1881 | 30 June, 1997 |
| 5 | 5 | Rubeus Hagrid | Male | Keeper of Keys and Grounds | Professor of Care of Magical Creatures | Gryffindor | 16" Oak unknown core | None | Half-Human/Half-Giant | Part-Human (Half-giant) | Black | Black | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Resistant to stunning spells| above average strength | crossbowmanship | 6 December 1928 | |
| 6 | 6 | Neville Longbottom | Male | Student | Gryffindor | 13" Cherry unicorn hair | Non-corporeal | Human | Pure-blood | Blond | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Herbology | 30 July, 1980 | ||
| 7 | 7 | Fred Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | 2 May, 1998 |
| 8 | 8 | George Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | |
| 9 | 9 | Ginevra (Ginny) Molly Weasley | Female | Student | Gryffindor | Unknown | Horse | Human | Pure-blood | Red | Bright brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Chaser| Bat-Bogey hex | 11 August, 1981 | |
| 10 | 10 | Dean Thomas | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Black | Brown | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1979- 31 August 1980 | |
| 11 | 11 | Seamus Finnigan | Male | Student | Gryffindor | Unknown | Fox | Human | Half-blood | Sandy | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Pyrotechnics | 1 September 1979- 31 August 1981 | ||
| 12 | 12 | Lily J. Potter | Female | Gryffindor | 10¼" Willow unknown core | Doe | Human | Muggle-born | Auburn | Bright green | Order of the Phoenix | 30 January, 1960 | 31 October, 1981 | ||
| 13 | 13 | James Potter | Male | Gryffindor | 11" Mahogany unknown core | Stag | Human | Pure-blood | Black | Hazel | Order of the Phoenix | Animagus| Seeker | 27 March, 1960 | 31 October, 1981 | |
| 14 | 14 | Sirius Black | Male | Gryffindor | Unknown | Unknown | Human | Pure-blood | Black | Grey | Order of the Phoenix | Animagus| nonverbal magic| Charms | 3 November, 1959 | 18 June, 1996 | |
| 15 | 15 | Remus John Lupin | Male | Professor of Defence Against the Dark Arts | Gryffindor | 10¼" Cypress unicorn hair | Wolf | Werewolf | Half-blood | Light brown flecked with grey | Green | Order of the Phoenix | Exceptionally gifted in Defence Against the Dark Arts | 10 March, 1960 | 2 May, 1998 |
| 16 | 16 | Peter Pettigrew | Male | The Servant of Lord Voldemort | Gryffindor | 9¼" Chestnut dragon heartstring | None | Human | Half-blood or pure-blood | Colourless and balding | Blue | Lord Voldemort| Death Eaters | Animagus | 1 September 1959- 31 August 1960 | Late March 1998 |
| 17 | 17 | Percy Ignatius Weasley | Male | Student|Prefect| Personal assistant to Barty Crouch Snr | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Blue | Order of the Phoenix| Hogwarts School of Witchcraft and Wizardry |British Ministry of Magic | Intelligent| hard-working| a model student | 22 August, 1976 | |
| 18 | 18 | (Bill) William Arthur Weasley | Male | Curse-Breaker for Gringotts Bank | Gryffindor | Unknown | Unknown | Human (Werewolf traits) | Pure-blood | Red | Blue | Order of the Phoenix | Highly skilled curse-breaker for Gringotts Wizarding Bank| very intelligent| past Hogwarts Head Boy | 29 November, 1970 | |
| 19 | 19 | Charles Weasley | Male | Dragonologist | Gryffindor | 12" Ash unicorn tail hair | Unknown | Human | Pure-blood | Red | Grey | Order of the Phoenix | Gringotts Wizarding Bank | Highly skilled dragon trainer| one-time Gryffindor Seeker | 12 December, 1972 | |
| 20 | 20 | Lee Jordan | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Quidditch commentary | broadcasting | 1 September 1977- 31 August 1978 | |
| 21 | 21 | Oliver Wood | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or Half-blood | Hogwarts School of Witchcraft and Wizardry | Keeper| Captain of the Gryffindor Quidditch team | October 1975 - 31 August 1976 | |||
| 22 | 22 | Angelina Johnson | Female | Student | Gryffindor | Unknown | Unknown | Human | Unknown | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 24 – 30 October, 1977 | |
| 23 | 23 | Katie Bell | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1978- 31 August 1979 | |
| 24 | 24 | Alicia Spinnet | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1977- 31 August 1978 | |
| 25 | 25 | Lavender Brown | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Blond | Blue | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 31 August 1980 | 2 May, 1998 |
| 26 | 26 | Parvati Patil | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 21 April 1980 | |
| 27 | 27 | Romilda Vane | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spiking Chocolate Cauldrons with love potion | 1 September 1981- 31 August 1982 | |
| 28 | 28 | Colin Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Photography | 3 May - 31 August 1981 | 2 May, 1998 | |
| 29 | 29 | Cormac McLaggen | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Blond | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Quidditch Keeper | 1 September 1978- 31 August 1979 | ||
| 30 | 30 | Minerva McGonagall | Female | Professor of Transfiguration | Head of Gryffindor | Gryffindor | 9½" Fir dragon heartstring | Cat | Human | Half-blood | Black | Green | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Animagus | 4 October | |
| 31 | 31 | Molly Weasley | Female | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Bright brown | Order of the Phoenix | Household spells| healing magic | 30 October, 1949 | ||
| 32 | 32 | Arthur Weasley | Male | Head of the Misuse of Muggle Artefacts Office | Gryffindor | Unknown | Weasel | Human | Pure-blood | Red | Green | Order of the Phoenix| British Ministry of Magic | Muggle world works | 6 February, 1950 | |
| 69 | 69 | Godric Gryffindor | Male | Founder of Gryffindor | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Red | Green | The most accomplished duellist of his time | Pre 976 | 11th century | |
| 71 | 71 | Nicholas de Mimsy-Porpington | Male | Gryffindor House Ghost | Gryffindor | Unknown | Unknown | Ghost | Grey | 1401 -1475 | 31 October, 1492 | ||||
| 78 | 78 | Helga Hufflepuff | Female | Founder of Hufflepuff | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Blue | Food-related Charms. Many traditional Hogwarts recipes originated with her | Pre 976 | 11th century | |
| 79 | 79 | Fat Friar | Male | Hufflepuff House Ghost | Hufflepuff | Unknown | Unknown | Ghost | Brown | Curing peasants of the pox | 10th century | Pre 1988 | |||
| 81 | 81 | Nymphadora Tonks | Female | Auror | Hufflepuff | Unknown | Jack rabbit, Wolf | Human | Half-blood | Variable | Variable | Ministry of Magic | Order of the Phoenix | Talented Auror, Metamorphmagus | 1 September 1972- 31 August 1973 | 2 May, 1998 |
| 82 | 82 | Pomona Sprout | Female | Professor of Herbology | Head of Hufflepuff House | Hufflepuff | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Grey | Herbology | 15 May | |||
| 83 | 83 | Newton Scamander | Male | Employee in the Beast Division of the Department for the Regulation and Control of Magical Creatures | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Red brown | Blue | Magizoology, Order of Merlin, Second Class | 24 February 1897 | ||
| 84 | 84 | Cedric Diggory | Male | Student | Hufflepuff | 12¼", Ash, unicorn hair | Unknown | Human | Pure-blood | Dark | Grey | Skilled Seeker | 1 September - 30 October 1977 | 24 June, 1995 | |
| 85 | 85 | Justin Finch-Fletchley | Male | Student | Hufflepuff | Unknown | Non-corporeal | Human | Muggle-born | Red | Dumbledore's Army | 1 September 1979- 31 August 1980 | |||
| 86 | 86 | Zacharias Smith | Male | Student | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Blonde | Dumbledore's Army | Chaser | 1 September 1979 - 2 May 1981 | ||
| 87 | 87 | Hannah Abbott | Female | Student | Hufflepuff | Unknown | Non-corporeal | Human | Half-blood | Blonde | Brown | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | |
| 88 | 88 | Ernest Macmillan | Male | Student | Hufflepuff | Unknown | Boar | Human | Pure-blood | Blond | Dumbledore's Army | Revising, being a Prefect, getting the wrong end of the stick | 21 April 1980 - 31 August 1980 | ||
| 89 | 89 | Susan Bones | Female | Student | Hufflepuff | Unknown | Unknown | Human | Half-blood | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | |||
| 98 | 98 | Frank Longbottom | Male | Auror | Gryffindor | Inherited by his son, Neville. It was broken in battle at the Department of Mysteries. | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | 1 September 1957 - 31 August 1959 or earlier | ||
| 114 | 114 | Edgar Bones | Male | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-brown | Grey | Original Order of the Phoenix | Said to be a great wizard | 1981 | ||
| 124 | 124 | Dennis Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy brown | Dumbledore's Army | 1 September 1982 - 31 August 1983 | |||
| 127 | 127 | Edward Remus Lupin | Male | Student | Hufflepuff | Unknown | Unknown | Human (Metamorphmagus) | Half-blood | Variable | Variable | April, 1998 | |||
| 128 | 128 | James Sirius Potter | Male | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | 1 September 2003-31 August 2004 | |||||
| 129 | 129 | Rose Granger-Weasley | Female | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | Red | Chaser | 1 September 2005-31 August 2006 |
Realiza un código para buscar personajes cuyo color de ojos sea Slytherin y Ravenclaw
# Personajes que pertenecen a las casas de Slytherin y Ravenclaw
hp_data[hp_data$House %in% c("Slytherin", "Ravenclaw"), ]| Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 33 | 33 | Quirinus Quirrell | Male | Defence Against the Dark Arts(1991-1992) | Ravenclaw | 9" Alder unicorn hair bendy | Non-corporeal | Human | Half-blood | Lord Voldemort | Learned in the theory of Defensive Magic| less adept in the practise | 26 September,1970 or earlier | 4 June 1992 | ||
| 34 | 34 | Cho Chang | Female | Student | Ravenclaw | Unknown | Swan | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Seeker | 1 September 1978-31 August 1979 | |
| 35 | 35 | Luna Lovegood | Female | Student | Ravenclaw | Unknown | Hare | Human | Pure-blood or half-blood | Dirty-blonde | Pale silvery | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spotting Nargles | 13 February, 1981 | |
| 36 | 36 | Gilderoy Lockhart | Male | Defence Against the Dark Arts(1992-1993) | Ravenclaw | 9" Cherry dragon heartstring | Non-corporeal | Human | Half-blood | Blond | Blue | 26 January 1964 | |||
| 37 | 37 | Filius Flitwick | Male | Professor of Charms | Head of Ravenclaw | Ravenclaw | Unknown | Non-corporeal | Human(goblin ancestry) | Part-Goblin | White | Charms | 17 October 1958 or earlier | |||
| 38 | 38 | Sybill Patricia Trelawney | Female | Professor of Divination | Ravenclaw | 9 ½” hazel unicorn hair core | Non-corporeal | Human | Half-blood | A Seer, though the gift is unpredictable and unconscious | 9 March prior to 1962 | ||||
| 39 | 39 | Garrick Ollivander | Male | Wandmaker | Ravenclaw | 12¾" Hornbeam dragon heartstring | Non-corporeal | Human | Half-blood | Silvery | An incomparable understanding of wandcraft | 25 September, pre 1908 | |||
| 40 | 40 | Myrtle Elizabeth Warren (Moaning Myrtle) | Female | Student | Ravenclaw | Unknown | Unknown | Ghost | Muggle-born | 14 June 1928 -13 June 1929 | 13 June, 1943 | ||||
| 41 | 41 | Padma Patil | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979 - 21 April 1980 | |
| 42 | 42 | Michael Corner | Male | Student | Ravenclaw | Unknown | Squirrel | Human | Half-blood | Black | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions | 1 September 1979 - 31 August 1980 | |
| 43 | 43 | Marietta Edgecombe | Female | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-blonde | Grey | Covering up the spots that blight her face after betraying Dumbledore's Army | 1978-1979 | ||
| 44 | 44 | Terry Boot | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions, also knowledgable about Charms | 1 September 1979- 21 April 1980 | |||
| 45 | 45 | Anthony Goldstein | Male | Student | Ravenclaw | Unknown | Non-corporeal | Human | Half-blood | Blonde | Grey | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979- 31 August 1980 | |
| 46 | 46 | Severus Snape | Male | Professor of Potions | Head of Slytherin | Slytherin | Unknown | Doe | Human | Half-blood | Black | Black | Extremely skilled at potions and Occlumency | 9 January 1960 | 2 May, 1998 | |
| 47 | 47 | Draco Malfoy | Male | Student | Slytherin | 10" Hawthorn unicorn hair | Unknown | Human | Pure-blood | White-blond | Grey | Prefect, Seeker | 5 June, 1980 | ||
| 48 | 48 | Vincent Crabbe | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Black | Black | Beater | c. 1979-1980 | 2 May, 1998 | |
| 49 | 49 | Gregory Goyle | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | Beater | 1 September 1979-31 August 1980 | |||
| 50 | 50 | Bellatrix Lestrange | Female | Slytherin | 12¾" Walnut dragon heartstring | Human | Pure-blood | Black | Lord Voldemort | Death Eaters | She is a duellist of great skill and an experienced Occlumens | 1951 | 2 May, 1998 | |||
| 51 | 51 | Dolores Jane Umbridge | Female | Professor of Defence Against the Dark Arts | Department of Magical Law Enforcement | Slytherin | 8" Birch dragon heartstring | Cat | Human | Half-blood | Iron grey | Ministry of Magic | Her punishment quill is of her own invention | 26 August | ||
| 52 | 52 | Horace Eugene Flaccus Slughorn | Professor of Potions | Slytherin | 10¼" Cedar dragon heartstring fairly flexible | Non-corporeal | Human | Pure-blood or half-blood | Bald | Gooseberry | Accomplished Occlumens, expert Potioneer, advanced self-transfiguration | 28 April | |||
| 53 | 53 | Lucius Malfoy | Male | School Governor | Slytherin | Elm and dragon heartstring | Unknown | Human | Pure-blood | White-blond | Grey | Lord Voldemort | Death Eaters | Skilled duellist and potioneer | c. 1954 | |
| 54 | 54 | Narcissa Malfoy | Female | Slytherin | Unknown | Unknown | Human | Pure-blood | Blonde | Blue | Lord Voldemort | Death Eaters | 1955 | |||
| 55 | 55 | Regulus Arcturus Black | Male | Slytherin | Unknown | Non-corporeal | Human | Pure-blood | Black | Seeker | 1961 | 1979 | |||
| 56 | 56 | Pansy Parkinson | Female | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Prefect | 1 September 1979- 31 August 1980 | ||||
| 57 | 57 | Blaise Zabini | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Chaser | 1 September, 1979 – 21 April, 1980 | ||
| 58 | 58 | Tom Marvolo Riddle | Male | Student | Slytherin | 13½" Yew phoenix feather core | Unknown | Human | Half-blood | Bald | Scarlet | Dark Lord, Outstanding manipulation, Parseltongue, Heir of Slytherin, Dark magic, Inferi creation and control | 31 December 1926 | 2 May, 1998 | |
| 59 | 59 | Theodore Nott | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | 1 September, 1979 – 21 April, 1980 | ||||
| 60 | 60 | Rodolphus Lestrange | Male | Slytherin | Unknown | Unknown | Human | Pure-blood | Dark | Dark | Lord Voldemort | Death Eaters | Pre 1964 | |||
| 61 | 61 | Millicent Bulstrode | Female | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Black | 1 September 1979- 31 August 1980 | ||||
| 62 | 62 | Graham Montague | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Quidditch captain, Chaser | In or prior to c.1981 | ||
| 63 | 63 | Bloody Baron | Male | Slytherin House Ghost | Slytherin | Unknown | Unknown | Ghost | Pure-blood or half-blood | Controlling Peeves | Post 982 | 11th century | |||
| 64 | 64 | Marcus Flint | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Chaser, Captain | 1 September 1975- 31 August 1976 | |||
| 65 | 65 | Penelope Clearwater | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Muggle-born or half-blood[ | Blonde | Prefect | 1 September 1975- 31 August 1976 | |||
| 66 | 66 | Roger Davies | Male | Student | Ravenclaw | Unknown | Unknown | Human | Dark | Dark | Quidditch Captain, Chaser | 1 September 1977- 31 August 1978 | |||
| 67 | 67 | Marcus Belby | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Dark | 1 September 1978 - 31 August 1979 | |||
| 68 | 68 | Salazar Slytherin | Male | Founder of Slytherin | Slytherin | snakewood, Basilisk horn | Unknown | Human | Pure-blood | Grey | Dark | Accomplished Legilimens and one of the first recorded Parselmouths | Pre 976 | 11th century | |
| 70 | 70 | Rowena Ravenclaw | Female | Founder of Ravenclaw | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Extremely skilled witch, known for her intelligence and wisdom | Pre 976 | 11th century | |
| 76 | 76 | Alecto Carrow | Female | Professor of Muggle Studies | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Spreading anti-Muggle propaganda | Pre 1981 | |||
| 77 | 77 | Amycus Carrow | Male | Professor of Dark Arts | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Cruciatus Curse | Pre 1982 | |||
| 80 | 80 | Helena Ravenclaw | Female | Ravenclaw House Ghost | Ravenclaw | Unknown | Unknown | Ghost | Pure-blood or half-blood | Black | Grey | Post 982 | 996-1000 | ||
| 90 | 90 | Walden Macnair | Male | Executioner for the Committee for the Disposal of Dangerous Creatures | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Lord Voldemort | Death Eaters | Liaising with giants | In or before 1970s | ||
| 91 | 91 | Augustus Rookwood | Male | Unspeakable | Slytherin | Unknown | None | Human | Pure-blood or half-blood | Brown/greying | Lord Voldemort | Death Eaters | Spying for Lord Voldemort | pre 1964 | ||
| 92 | 92 | Antonin Dolohov | Male | Death Eater | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Dark | Lord Voldemort | Death Eaters | Duelling. Fought and killed Molly Weasley's brothers and Remus Lupin | pre 1950 | ||
| 93 | 93 | Corban Yaxley | Male | Head of the Department of Magical Law Enforcement | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Blonde | Blue | Lord Voldemort | Death Eaters | Imperius curse, undercover work | Pre 1970s | |
| 125 | 125 | Albus Severus Potter | Male | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Jet-black | Bright green | Between 1 September 2005-31 August 2006 | |||
| 126 | 126 | Scorpius Hyperion Malfoy | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | White blond | Grey | Between 1 September 2005-31 August 2007 |
dplyr es una de las herramientas más importantes para manipulación de datos en R. Permite trabajar de forma clara, rápida y legible.
Es un paquete del ecosistema tidyverse diseñado para:
Seleccionar columnas
Filtrar filas
Ordenar
Transformar
Resumir datos
Todo usando una sintaxis fácil de leer.
Un conjunto de datos tidy cumple tres reglas:
Cada columna es una variable
Cada fila es una observación
Cada valor es una celda única
Esto facilita análisis, visualización y modelado.
Para utilizar las funciones de dplyr, primero es necesario instalar el paquete (solo la primera vez), y después cargarlo cada vez que inicies una sesión en R.
install.packages("dplyr")Y ahora lo cargamos, con la función que habíamos visto library
library(dplyr)
Adjuntando el paquete: 'dplyr'
The following object is masked from 'package:kableExtra':
group_rows
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
|>Permite encadenar operaciones de manera clara.
Ejemplo:
hp_data |> filter(House == "Ravenclaw") |> select(Name, Blood.status)| Name | Blood.status |
|---|---|
| Quirinus Quirrell | Half-blood |
| Cho Chang | Pure-blood or half-blood |
| Luna Lovegood | Pure-blood or half-blood |
| Gilderoy Lockhart | Half-blood |
| Filius Flitwick | Part-Goblin |
| Sybill Patricia Trelawney | Half-blood |
| Garrick Ollivander | Half-blood |
| Myrtle Elizabeth Warren (Moaning Myrtle) | Muggle-born |
| Padma Patil | Pure-blood or half-blood |
| Michael Corner | Half-blood |
| Marietta Edgecombe | Pure-blood or half-blood |
| Terry Boot | Pure-blood or half-blood |
| Anthony Goldstein | Half-blood |
| Penelope Clearwater | Muggle-born or half-blood[ |
| Roger Davies | |
| Marcus Belby | Pure-blood or half-blood |
| Rowena Ravenclaw | Pure-blood or half-blood |
| Helena Ravenclaw | Pure-blood or half-blood |
Se lee como:
“Toma hp_data, luego filtra House == Ravenclaw, luego selecciona Name y BloodStatus”.
Aquí aplicamos las funciones más usadas de dplyr sobre la base de Harry Potter.
select() – seleccionar columnas# Seleccionamos las columnas de los nombres, casas y patronus
hp_data |> select(Name, House, Patronus) | Name | House | Patronus |
|---|---|---|
| Harry James Potter | Gryffindor | Stag |
| Ronald Bilius Weasley | Gryffindor | Jack Russell terrier |
| Hermione Jean Granger | Gryffindor | Otter |
| Albus Percival Wulfric Brian Dumbledore | Gryffindor | Phoenix |
| Rubeus Hagrid | Gryffindor | None |
| Neville Longbottom | Gryffindor | Non-corporeal |
| Fred Weasley | Gryffindor | Unknown |
| George Weasley | Gryffindor | Unknown |
| Ginevra (Ginny) Molly Weasley | Gryffindor | Horse |
| Dean Thomas | Gryffindor | Unknown |
| Seamus Finnigan | Gryffindor | Fox |
| Lily J. Potter | Gryffindor | Doe |
| James Potter | Gryffindor | Stag |
| Sirius Black | Gryffindor | Unknown |
| Remus John Lupin | Gryffindor | Wolf |
| Peter Pettigrew | Gryffindor | None |
| Percy Ignatius Weasley | Gryffindor | Unknown |
| (Bill) William Arthur Weasley | Gryffindor | Unknown |
| Charles Weasley | Gryffindor | Unknown |
| Lee Jordan | Gryffindor | Unknown |
| Oliver Wood | Gryffindor | Unknown |
| Angelina Johnson | Gryffindor | Unknown |
| Katie Bell | Gryffindor | Unknown |
| Alicia Spinnet | Gryffindor | Unknown |
| Lavender Brown | Gryffindor | Unknown |
| Parvati Patil | Gryffindor | Unknown |
| Romilda Vane | Gryffindor | Unknown |
| Colin Creevey | Gryffindor | Unknown |
| Cormac McLaggen | Gryffindor | Unknown |
| Minerva McGonagall | Gryffindor | Cat |
| Molly Weasley | Gryffindor | Unknown |
| Arthur Weasley | Gryffindor | Weasel |
| Quirinus Quirrell | Ravenclaw | Non-corporeal |
| Cho Chang | Ravenclaw | Swan |
| Luna Lovegood | Ravenclaw | Hare |
| Gilderoy Lockhart | Ravenclaw | Non-corporeal |
| Filius Flitwick | Ravenclaw | Non-corporeal |
| Sybill Patricia Trelawney | Ravenclaw | Non-corporeal |
| Garrick Ollivander | Ravenclaw | Non-corporeal |
| Myrtle Elizabeth Warren (Moaning Myrtle) | Ravenclaw | Unknown |
| Padma Patil | Ravenclaw | Non-corporeal |
| Michael Corner | Ravenclaw | Squirrel |
| Marietta Edgecombe | Ravenclaw | Unknown |
| Terry Boot | Ravenclaw | Unknown |
| Anthony Goldstein | Ravenclaw | Non-corporeal |
| Severus Snape | Slytherin | Doe |
| Draco Malfoy | Slytherin | Unknown |
| Vincent Crabbe | Slytherin | Unknown |
| Gregory Goyle | Slytherin | Unknown |
| Bellatrix Lestrange | Slytherin | |
| Dolores Jane Umbridge | Slytherin | Cat |
| Horace Eugene Flaccus Slughorn | Slytherin | Non-corporeal |
| Lucius Malfoy | Slytherin | Unknown |
| Narcissa Malfoy | Slytherin | Unknown |
| Regulus Arcturus Black | Slytherin | Non-corporeal |
| Pansy Parkinson | Slytherin | Unknown |
| Blaise Zabini | Slytherin | Unknown |
| Tom Marvolo Riddle | Slytherin | Unknown |
| Theodore Nott | Slytherin | Unknown |
| Rodolphus Lestrange | Slytherin | Unknown |
| Millicent Bulstrode | Slytherin | Unknown |
| Graham Montague | Slytherin | Unknown |
| Bloody Baron | Slytherin | Unknown |
| Marcus Flint | Slytherin | Unknown |
| Penelope Clearwater | Ravenclaw | Non-corporeal |
| Roger Davies | Ravenclaw | Unknown |
| Marcus Belby | Ravenclaw | Unknown |
| Salazar Slytherin | Slytherin | Unknown |
| Godric Gryffindor | Gryffindor | Unknown |
| Rowena Ravenclaw | Ravenclaw | Unknown |
| Nicholas de Mimsy-Porpington | Gryffindor | Unknown |
| Cuthbert Binns | Unknown | |
| Barty Crouch Jr. | Unknown | |
| Charity Burbage | Non-corporeal | |
| Firenze | ||
| Alecto Carrow | Slytherin | Unknown |
| Amycus Carrow | Slytherin | Unknown |
| Helga Hufflepuff | Hufflepuff | Unknown |
| Fat Friar | Hufflepuff | Unknown |
| Helena Ravenclaw | Ravenclaw | Unknown |
| Nymphadora Tonks | Hufflepuff | Jack rabbit, Wolf |
| Pomona Sprout | Hufflepuff | Non-corporeal |
| Newton Scamander | Hufflepuff | Unknown |
| Cedric Diggory | Hufflepuff | Unknown |
| Justin Finch-Fletchley | Hufflepuff | Non-corporeal |
| Zacharias Smith | Hufflepuff | Unknown |
| Hannah Abbott | Hufflepuff | Non-corporeal |
| Ernest Macmillan | Hufflepuff | Boar |
| Susan Bones | Hufflepuff | Unknown |
| Walden Macnair | Slytherin | Unknown |
| Augustus Rookwood | Slytherin | None |
| Antonin Dolohov | Slytherin | None |
| Corban Yaxley | Slytherin | None |
| Igor Karkaroff | None | |
| Kingsley Shacklebolt | Lynx | |
| Alastor Moody | Non-corporeal | |
| Alice Longbottom | Unknown | |
| Frank Longbottom | Gryffindor | Unknown |
| Rufus Scrimgeour | Non-corporeal | |
| Cornelius Oswald Fudge | Non-corporeal | |
| Barty Crouch Sr. | Non-corporeal | |
| Amos Diggory | Non-corporeal | |
| Dedalus Diggle | Non-corporeal | |
| Elphias Doge | Non-corporeal | |
| Fleur Isabelle Delacour | Beauxbatons Academy of Magic | Non-corporeal |
| Aberforth Dumbledore | Goat | |
| Mundungus Fletcher | Non-corporeal | |
| Sturgis Podmore | Unknown | |
| Hestia Jones | Unknown | |
| Marlene McKinnon | Unknown | |
| Fabian Prewett | Unknown | |
| Gideon Prewett | Unknown | |
| Emmeline Vance | Unknown | |
| Edgar Bones | Hufflepuff | Unknown |
| Dorcas Meadowes | Unknown | |
| Benjy Fenwick | Unknown | |
| Madame Olympe Maxime | Beauxbatons Academy of Magic | Unknown |
| Gabrielle Delacour | Beauxbatons Academy of Magic | Unknown |
| Viktor Krum | Durmstrang Institute | Unknown |
| Petunia Dursley | ||
| Vernon Dursley | ||
| Dudley Dursley | ||
| Marge Dursley | ||
| Dennis Creevey | Gryffindor | Unknown |
| Albus Severus Potter | Slytherin | Unknown |
| Scorpius Hyperion Malfoy | Slytherin | Unknown |
| Edward Remus Lupin | Hufflepuff | Unknown |
| James Sirius Potter | Gryffindor | Unknown |
| Rose Granger-Weasley | Gryffindor | Unknown |
| Argus Filch | ||
| Poppy Pomfrey | Non-corporeal | |
| Rolanda Hooch | Non-corporeal | |
| Irma Pince | Non-corporeal | |
| Aurora Sinistra | Unknown | |
| Septima Vector | Unknown | |
| Wilhelmina Grubbly-Plank | Non-corporeal | |
| Fenrir Greyback | None | |
| Gellert Grindelwald | ||
| Dobby | ||
| Kreacher |
filter() – filtrar filas# Seleccionamos solo a los personajes de Ravenclaw
hp_data |> filter(House == "Ravenclaw") | Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 33 | Quirinus Quirrell | Male | Defence Against the Dark Arts(1991-1992) | Ravenclaw | 9" Alder unicorn hair bendy | Non-corporeal | Human | Half-blood | Lord Voldemort | Learned in the theory of Defensive Magic| less adept in the practise | 26 September,1970 or earlier | 4 June 1992 | ||
| 34 | Cho Chang | Female | Student | Ravenclaw | Unknown | Swan | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Seeker | 1 September 1978-31 August 1979 | |
| 35 | Luna Lovegood | Female | Student | Ravenclaw | Unknown | Hare | Human | Pure-blood or half-blood | Dirty-blonde | Pale silvery | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spotting Nargles | 13 February, 1981 | |
| 36 | Gilderoy Lockhart | Male | Defence Against the Dark Arts(1992-1993) | Ravenclaw | 9" Cherry dragon heartstring | Non-corporeal | Human | Half-blood | Blond | Blue | 26 January 1964 | |||
| 37 | Filius Flitwick | Male | Professor of Charms | Head of Ravenclaw | Ravenclaw | Unknown | Non-corporeal | Human(goblin ancestry) | Part-Goblin | White | Charms | 17 October 1958 or earlier | |||
| 38 | Sybill Patricia Trelawney | Female | Professor of Divination | Ravenclaw | 9 ½” hazel unicorn hair core | Non-corporeal | Human | Half-blood | A Seer, though the gift is unpredictable and unconscious | 9 March prior to 1962 | ||||
| 39 | Garrick Ollivander | Male | Wandmaker | Ravenclaw | 12¾" Hornbeam dragon heartstring | Non-corporeal | Human | Half-blood | Silvery | An incomparable understanding of wandcraft | 25 September, pre 1908 | |||
| 40 | Myrtle Elizabeth Warren (Moaning Myrtle) | Female | Student | Ravenclaw | Unknown | Unknown | Ghost | Muggle-born | 14 June 1928 -13 June 1929 | 13 June, 1943 | ||||
| 41 | Padma Patil | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979 - 21 April 1980 | |
| 42 | Michael Corner | Male | Student | Ravenclaw | Unknown | Squirrel | Human | Half-blood | Black | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions | 1 September 1979 - 31 August 1980 | |
| 43 | Marietta Edgecombe | Female | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-blonde | Grey | Covering up the spots that blight her face after betraying Dumbledore's Army | 1978-1979 | ||
| 44 | Terry Boot | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions, also knowledgable about Charms | 1 September 1979- 21 April 1980 | |||
| 45 | Anthony Goldstein | Male | Student | Ravenclaw | Unknown | Non-corporeal | Human | Half-blood | Blonde | Grey | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979- 31 August 1980 | |
| 65 | Penelope Clearwater | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Muggle-born or half-blood[ | Blonde | Prefect | 1 September 1975- 31 August 1976 | |||
| 66 | Roger Davies | Male | Student | Ravenclaw | Unknown | Unknown | Human | Dark | Dark | Quidditch Captain, Chaser | 1 September 1977- 31 August 1978 | |||
| 67 | Marcus Belby | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Dark | 1 September 1978 - 31 August 1979 | |||
| 70 | Rowena Ravenclaw | Female | Founder of Ravenclaw | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Extremely skilled witch, known for her intelligence and wisdom | Pre 976 | 11th century | |
| 80 | Helena Ravenclaw | Female | Ravenclaw House Ghost | Ravenclaw | Unknown | Unknown | Ghost | Pure-blood or half-blood | Black | Grey | Post 982 | 996-1000 |
Con múltiples filtros:
# Seleccionamos ahora personajes de Slytherin que sean sangre mestiza
hp_data |> filter(House == "Slytherin", Blood.status == "Half-blood") | Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 46 | Severus Snape | Male | Professor of Potions | Head of Slytherin | Slytherin | Unknown | Doe | Human | Half-blood | Black | Black | Extremely skilled at potions and Occlumency | 9 January 1960 | 2 May, 1998 | |
| 51 | Dolores Jane Umbridge | Female | Professor of Defence Against the Dark Arts | Department of Magical Law Enforcement | Slytherin | 8" Birch dragon heartstring | Cat | Human | Half-blood | Iron grey | Ministry of Magic | Her punishment quill is of her own invention | 26 August | ||
| 58 | Tom Marvolo Riddle | Male | Student | Slytherin | 13½" Yew phoenix feather core | Unknown | Human | Half-blood | Bald | Scarlet | Dark Lord, Outstanding manipulation, Parseltongue, Heir of Slytherin, Dark magic, Inferi creation and control | 31 December 1926 | 2 May, 1998 | |
| 61 | Millicent Bulstrode | Female | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Black | 1 September 1979- 31 August 1980 | ||||
| 125 | Albus Severus Potter | Male | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Jet-black | Bright green | Between 1 September 2005-31 August 2006 |
grepl()En algunas columnas, como Skills, aparecen varias habilidades juntas, separadas por | para poder filtrar un texto específico, podemos utilizar grepl( ). Esta función nos permite buscar coincidencias dentro de un texto, porque busca texto dentro de un string, aunque esté acompañado de:
otras habilidades
espacios
otros símbolos
mayúsculas/minúsculas (si quieres ignorarlo se puede)
Ejemplo:
hp_data |>
filter(grepl("Animagus", Skills))| Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 13 | James Potter | Male | Gryffindor | 11" Mahogany unknown core | Stag | Human | Pure-blood | Black | Hazel | Order of the Phoenix | Animagus| Seeker | 27 March, 1960 | 31 October, 1981 | |
| 14 | Sirius Black | Male | Gryffindor | Unknown | Unknown | Human | Pure-blood | Black | Grey | Order of the Phoenix | Animagus| nonverbal magic| Charms | 3 November, 1959 | 18 June, 1996 | |
| 16 | Peter Pettigrew | Male | The Servant of Lord Voldemort | Gryffindor | 9¼" Chestnut dragon heartstring | None | Human | Half-blood or pure-blood | Colourless and balding | Blue | Lord Voldemort| Death Eaters | Animagus | 1 September 1959- 31 August 1960 | Late March 1998 |
| 30 | Minerva McGonagall | Female | Professor of Transfiguration | Head of Gryffindor | Gryffindor | 9½" Fir dragon heartstring | Cat | Human | Half-blood | Black | Green | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Animagus | 4 October |
Si queremos especificar que ignore si son mayúsculas o minúsculas, se utiliza el argumento ignore.case = TRUE, junto con el código anterior
hp_data |>
filter(grepl("Animagus", Skills, ignore.case=TRUE))| Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 13 | James Potter | Male | Gryffindor | 11" Mahogany unknown core | Stag | Human | Pure-blood | Black | Hazel | Order of the Phoenix | Animagus| Seeker | 27 March, 1960 | 31 October, 1981 | |
| 14 | Sirius Black | Male | Gryffindor | Unknown | Unknown | Human | Pure-blood | Black | Grey | Order of the Phoenix | Animagus| nonverbal magic| Charms | 3 November, 1959 | 18 June, 1996 | |
| 16 | Peter Pettigrew | Male | The Servant of Lord Voldemort | Gryffindor | 9¼" Chestnut dragon heartstring | None | Human | Half-blood or pure-blood | Colourless and balding | Blue | Lord Voldemort| Death Eaters | Animagus | 1 September 1959- 31 August 1960 | Late March 1998 |
| 30 | Minerva McGonagall | Female | Professor of Transfiguration | Head of Gryffindor | Gryffindor | 9½" Fir dragon heartstring | Cat | Human | Half-blood | Black | Green | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Animagus | 4 October |
Realiza un filtro para buscar a los personajes que tienen patronus con forma de gato (Cat), cisne (Swan) y fénix (Phoenix)
hp_data |>
filter(grepl("Cat|Phoenix|Swan", Patronus, ignore.case = TRUE)) Id Name Gender
1 4 Albus Percival Wulfric Brian Dumbledore Male
2 30 Minerva McGonagall Female
3 34 Cho Chang Female
4 51 Dolores Jane Umbridge Female
Job
1 Headmaster
2 Professor of Transfiguration | Head of Gryffindor
3 Student
4 Professor of Defence Against the Dark Arts | Department of Magical Law Enforcement
House Wand Patronus Species
1 Gryffindor 15" Elder Thestral tail hair core Phoenix Human
2 Gryffindor 9½" Fir dragon heartstring Cat Human
3 Ravenclaw Unknown Swan Human
4 Slytherin 8" Birch dragon heartstring Cat Human
Blood.status Hair.colour Eye.colour
1 Half-blood Silver| formerly auburn Blue
2 Half-blood Black Green
3 Pure-blood or half-blood Black Dark
4 Half-blood Iron grey
Loyalty
1 Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry
2 Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry
3 Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry
4 Ministry of Magic
Skills
1 Considered by many to be one of the most powerful wizards of his time
2 Animagus
3 Seeker
4 Her punishment quill is of her own invention
Birth Death
1 Late August 1881 30 June, 1997
2 4 October
3 1 September 1978-31 August 1979
4 26 August
Para buscar varios patrones al mismo tiempo, debes unirlos en una sola expresión regular usando "|" (OR)
mutate() – crear o modificar columnasLa función de mutate() nos permite crear nuevas columnas o transformar columnas existentes usando operaciones, funciones o condiciones. Es una herramienta esencial para preparar datos antes de analizarlos
Crear una columna nueva:
# Creamos una nueva columna con la longitud de los nombres de cada personaje
hp_data |> mutate(NameLength = nchar(Name)) | Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death | NameLength |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Harry James Potter | Male | Student | Gryffindor | 11" Holly phoenix feather | Stag | Human | Half-blood | Black | Bright green | Albus Dumbledore | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Parseltongue| Defence Against the Dark Arts | Seeker | 31 July 1980 | 18 | |
| 2 | Ronald Bilius Weasley | Male | Student | Gryffindor | 12" Ash unicorn tail hair | Jack Russell terrier | Human | Pure-blood | Red | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Wizard chess | Quidditch goalkeeping | 1 March 1980 | 21 | |
| 3 | Hermione Jean Granger | Female | Student | Gryffindor | 10¾" vine wood dragon heartstring | Otter | Human | Muggle-born | Brown | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Almost everything | 19 September, 1979 | 21 | |
| 4 | Albus Percival Wulfric Brian Dumbledore | Male | Headmaster | Gryffindor | 15" Elder Thestral tail hair core | Phoenix | Human | Half-blood | Silver| formerly auburn | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Considered by many to be one of the most powerful wizards of his time | Late August 1881 | 30 June, 1997 | 39 |
| 5 | Rubeus Hagrid | Male | Keeper of Keys and Grounds | Professor of Care of Magical Creatures | Gryffindor | 16" Oak unknown core | None | Half-Human/Half-Giant | Part-Human (Half-giant) | Black | Black | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Resistant to stunning spells| above average strength | crossbowmanship | 6 December 1928 | 13 | |
| 6 | Neville Longbottom | Male | Student | Gryffindor | 13" Cherry unicorn hair | Non-corporeal | Human | Pure-blood | Blond | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Herbology | 30 July, 1980 | 18 | ||
| 7 | Fred Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | 2 May, 1998 | 12 |
| 8 | George Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | 14 | |
| 9 | Ginevra (Ginny) Molly Weasley | Female | Student | Gryffindor | Unknown | Horse | Human | Pure-blood | Red | Bright brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Chaser| Bat-Bogey hex | 11 August, 1981 | 29 | |
| 10 | Dean Thomas | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Black | Brown | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1979- 31 August 1980 | 11 | |
| 11 | Seamus Finnigan | Male | Student | Gryffindor | Unknown | Fox | Human | Half-blood | Sandy | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Pyrotechnics | 1 September 1979- 31 August 1981 | 15 | ||
| 12 | Lily J. Potter | Female | Gryffindor | 10¼" Willow unknown core | Doe | Human | Muggle-born | Auburn | Bright green | Order of the Phoenix | 30 January, 1960 | 31 October, 1981 | 14 | ||
| 13 | James Potter | Male | Gryffindor | 11" Mahogany unknown core | Stag | Human | Pure-blood | Black | Hazel | Order of the Phoenix | Animagus| Seeker | 27 March, 1960 | 31 October, 1981 | 12 | |
| 14 | Sirius Black | Male | Gryffindor | Unknown | Unknown | Human | Pure-blood | Black | Grey | Order of the Phoenix | Animagus| nonverbal magic| Charms | 3 November, 1959 | 18 June, 1996 | 12 | |
| 15 | Remus John Lupin | Male | Professor of Defence Against the Dark Arts | Gryffindor | 10¼" Cypress unicorn hair | Wolf | Werewolf | Half-blood | Light brown flecked with grey | Green | Order of the Phoenix | Exceptionally gifted in Defence Against the Dark Arts | 10 March, 1960 | 2 May, 1998 | 16 |
| 16 | Peter Pettigrew | Male | The Servant of Lord Voldemort | Gryffindor | 9¼" Chestnut dragon heartstring | None | Human | Half-blood or pure-blood | Colourless and balding | Blue | Lord Voldemort| Death Eaters | Animagus | 1 September 1959- 31 August 1960 | Late March 1998 | 15 |
| 17 | Percy Ignatius Weasley | Male | Student|Prefect| Personal assistant to Barty Crouch Snr | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Blue | Order of the Phoenix| Hogwarts School of Witchcraft and Wizardry |British Ministry of Magic | Intelligent| hard-working| a model student | 22 August, 1976 | 22 | |
| 18 | (Bill) William Arthur Weasley | Male | Curse-Breaker for Gringotts Bank | Gryffindor | Unknown | Unknown | Human (Werewolf traits) | Pure-blood | Red | Blue | Order of the Phoenix | Highly skilled curse-breaker for Gringotts Wizarding Bank| very intelligent| past Hogwarts Head Boy | 29 November, 1970 | 29 | |
| 19 | Charles Weasley | Male | Dragonologist | Gryffindor | 12" Ash unicorn tail hair | Unknown | Human | Pure-blood | Red | Grey | Order of the Phoenix | Gringotts Wizarding Bank | Highly skilled dragon trainer| one-time Gryffindor Seeker | 12 December, 1972 | 15 | |
| 20 | Lee Jordan | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Quidditch commentary | broadcasting | 1 September 1977- 31 August 1978 | 11 | |
| 21 | Oliver Wood | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or Half-blood | Hogwarts School of Witchcraft and Wizardry | Keeper| Captain of the Gryffindor Quidditch team | October 1975 - 31 August 1976 | 11 | |||
| 22 | Angelina Johnson | Female | Student | Gryffindor | Unknown | Unknown | Human | Unknown | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 24 – 30 October, 1977 | 16 | |
| 23 | Katie Bell | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1978- 31 August 1979 | 10 | |
| 24 | Alicia Spinnet | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1977- 31 August 1978 | 14 | |
| 25 | Lavender Brown | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Blond | Blue | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 31 August 1980 | 2 May, 1998 | 14 |
| 26 | Parvati Patil | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 21 April 1980 | 13 | |
| 27 | Romilda Vane | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spiking Chocolate Cauldrons with love potion | 1 September 1981- 31 August 1982 | 12 | |
| 28 | Colin Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Photography | 3 May - 31 August 1981 | 2 May, 1998 | 13 | |
| 29 | Cormac McLaggen | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Blond | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Quidditch Keeper | 1 September 1978- 31 August 1979 | 15 | ||
| 30 | Minerva McGonagall | Female | Professor of Transfiguration | Head of Gryffindor | Gryffindor | 9½" Fir dragon heartstring | Cat | Human | Half-blood | Black | Green | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Animagus | 4 October | 18 | |
| 31 | Molly Weasley | Female | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Bright brown | Order of the Phoenix | Household spells| healing magic | 30 October, 1949 | 13 | ||
| 32 | Arthur Weasley | Male | Head of the Misuse of Muggle Artefacts Office | Gryffindor | Unknown | Weasel | Human | Pure-blood | Red | Green | Order of the Phoenix| British Ministry of Magic | Muggle world works | 6 February, 1950 | 14 | |
| 33 | Quirinus Quirrell | Male | Defence Against the Dark Arts(1991-1992) | Ravenclaw | 9" Alder unicorn hair bendy | Non-corporeal | Human | Half-blood | Lord Voldemort | Learned in the theory of Defensive Magic| less adept in the practise | 26 September,1970 or earlier | 4 June 1992 | 17 | ||
| 34 | Cho Chang | Female | Student | Ravenclaw | Unknown | Swan | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Seeker | 1 September 1978-31 August 1979 | 9 | |
| 35 | Luna Lovegood | Female | Student | Ravenclaw | Unknown | Hare | Human | Pure-blood or half-blood | Dirty-blonde | Pale silvery | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spotting Nargles | 13 February, 1981 | 13 | |
| 36 | Gilderoy Lockhart | Male | Defence Against the Dark Arts(1992-1993) | Ravenclaw | 9" Cherry dragon heartstring | Non-corporeal | Human | Half-blood | Blond | Blue | 26 January 1964 | 17 | |||
| 37 | Filius Flitwick | Male | Professor of Charms | Head of Ravenclaw | Ravenclaw | Unknown | Non-corporeal | Human(goblin ancestry) | Part-Goblin | White | Charms | 17 October 1958 or earlier | 15 | |||
| 38 | Sybill Patricia Trelawney | Female | Professor of Divination | Ravenclaw | 9 ½” hazel unicorn hair core | Non-corporeal | Human | Half-blood | A Seer, though the gift is unpredictable and unconscious | 9 March prior to 1962 | 25 | ||||
| 39 | Garrick Ollivander | Male | Wandmaker | Ravenclaw | 12¾" Hornbeam dragon heartstring | Non-corporeal | Human | Half-blood | Silvery | An incomparable understanding of wandcraft | 25 September, pre 1908 | 18 | |||
| 40 | Myrtle Elizabeth Warren (Moaning Myrtle) | Female | Student | Ravenclaw | Unknown | Unknown | Ghost | Muggle-born | 14 June 1928 -13 June 1929 | 13 June, 1943 | 40 | ||||
| 41 | Padma Patil | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979 - 21 April 1980 | 11 | |
| 42 | Michael Corner | Male | Student | Ravenclaw | Unknown | Squirrel | Human | Half-blood | Black | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions | 1 September 1979 - 31 August 1980 | 14 | |
| 43 | Marietta Edgecombe | Female | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-blonde | Grey | Covering up the spots that blight her face after betraying Dumbledore's Army | 1978-1979 | 18 | ||
| 44 | Terry Boot | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions, also knowledgable about Charms | 1 September 1979- 21 April 1980 | 10 | |||
| 45 | Anthony Goldstein | Male | Student | Ravenclaw | Unknown | Non-corporeal | Human | Half-blood | Blonde | Grey | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979- 31 August 1980 | 17 | |
| 46 | Severus Snape | Male | Professor of Potions | Head of Slytherin | Slytherin | Unknown | Doe | Human | Half-blood | Black | Black | Extremely skilled at potions and Occlumency | 9 January 1960 | 2 May, 1998 | 13 | |
| 47 | Draco Malfoy | Male | Student | Slytherin | 10" Hawthorn unicorn hair | Unknown | Human | Pure-blood | White-blond | Grey | Prefect, Seeker | 5 June, 1980 | 12 | ||
| 48 | Vincent Crabbe | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Black | Black | Beater | c. 1979-1980 | 2 May, 1998 | 14 | |
| 49 | Gregory Goyle | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | Beater | 1 September 1979-31 August 1980 | 13 | |||
| 50 | Bellatrix Lestrange | Female | Slytherin | 12¾" Walnut dragon heartstring | Human | Pure-blood | Black | Lord Voldemort | Death Eaters | She is a duellist of great skill and an experienced Occlumens | 1951 | 2 May, 1998 | 19 | |||
| 51 | Dolores Jane Umbridge | Female | Professor of Defence Against the Dark Arts | Department of Magical Law Enforcement | Slytherin | 8" Birch dragon heartstring | Cat | Human | Half-blood | Iron grey | Ministry of Magic | Her punishment quill is of her own invention | 26 August | 21 | ||
| 52 | Horace Eugene Flaccus Slughorn | Professor of Potions | Slytherin | 10¼" Cedar dragon heartstring fairly flexible | Non-corporeal | Human | Pure-blood or half-blood | Bald | Gooseberry | Accomplished Occlumens, expert Potioneer, advanced self-transfiguration | 28 April | 30 | |||
| 53 | Lucius Malfoy | Male | School Governor | Slytherin | Elm and dragon heartstring | Unknown | Human | Pure-blood | White-blond | Grey | Lord Voldemort | Death Eaters | Skilled duellist and potioneer | c. 1954 | 13 | |
| 54 | Narcissa Malfoy | Female | Slytherin | Unknown | Unknown | Human | Pure-blood | Blonde | Blue | Lord Voldemort | Death Eaters | 1955 | 15 | |||
| 55 | Regulus Arcturus Black | Male | Slytherin | Unknown | Non-corporeal | Human | Pure-blood | Black | Seeker | 1961 | 1979 | 22 | |||
| 56 | Pansy Parkinson | Female | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Prefect | 1 September 1979- 31 August 1980 | 15 | ||||
| 57 | Blaise Zabini | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Chaser | 1 September, 1979 – 21 April, 1980 | 13 | ||
| 58 | Tom Marvolo Riddle | Male | Student | Slytherin | 13½" Yew phoenix feather core | Unknown | Human | Half-blood | Bald | Scarlet | Dark Lord, Outstanding manipulation, Parseltongue, Heir of Slytherin, Dark magic, Inferi creation and control | 31 December 1926 | 2 May, 1998 | 18 | |
| 59 | Theodore Nott | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | 1 September, 1979 – 21 April, 1980 | 13 | ||||
| 60 | Rodolphus Lestrange | Male | Slytherin | Unknown | Unknown | Human | Pure-blood | Dark | Dark | Lord Voldemort | Death Eaters | Pre 1964 | 19 | |||
| 61 | Millicent Bulstrode | Female | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Black | 1 September 1979- 31 August 1980 | 19 | ||||
| 62 | Graham Montague | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Quidditch captain, Chaser | In or prior to c.1981 | 15 | ||
| 63 | Bloody Baron | Male | Slytherin House Ghost | Slytherin | Unknown | Unknown | Ghost | Pure-blood or half-blood | Controlling Peeves | Post 982 | 11th century | 12 | |||
| 64 | Marcus Flint | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Chaser, Captain | 1 September 1975- 31 August 1976 | 12 | |||
| 65 | Penelope Clearwater | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Muggle-born or half-blood[ | Blonde | Prefect | 1 September 1975- 31 August 1976 | 19 | |||
| 66 | Roger Davies | Male | Student | Ravenclaw | Unknown | Unknown | Human | Dark | Dark | Quidditch Captain, Chaser | 1 September 1977- 31 August 1978 | 12 | |||
| 67 | Marcus Belby | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Dark | 1 September 1978 - 31 August 1979 | 12 | |||
| 68 | Salazar Slytherin | Male | Founder of Slytherin | Slytherin | snakewood, Basilisk horn | Unknown | Human | Pure-blood | Grey | Dark | Accomplished Legilimens and one of the first recorded Parselmouths | Pre 976 | 11th century | 17 | |
| 69 | Godric Gryffindor | Male | Founder of Gryffindor | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Red | Green | The most accomplished duellist of his time | Pre 976 | 11th century | 17 | |
| 70 | Rowena Ravenclaw | Female | Founder of Ravenclaw | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Extremely skilled witch, known for her intelligence and wisdom | Pre 976 | 11th century | 16 | |
| 71 | Nicholas de Mimsy-Porpington | Male | Gryffindor House Ghost | Gryffindor | Unknown | Unknown | Ghost | Grey | 1401 -1475 | 31 October, 1492 | 28 | ||||
| 72 | Cuthbert Binns | Male | Professor of History of Magic | Unknown | Unknown | Ghost | White (balding) | Black | Boring a class with facts that might be interesting if anyone else was giving the lesson | Pre 1970s | 14 | ||||
| 73 | Barty Crouch Jr. | Male | Professor of Defence Against the Dark Arts (as Alastor Moody) | Unknown | Unknown | Human | Pure-blood or half-blood | Straw blond | Pale, freckled | Lord Voldemort | Death Eaters | Skilled potioneer | 1962 | 1995-1996 | 16 | |
| 74 | Charity Burbage | Female | Professor of Muggle Studies | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Blonde | Teaching and studying the Muggle world | Before 1976 | Late July, 1997 | 15 | |||
| 75 | Firenze | Male | Professor of Divination | Centaur | White-blond | Astonishingly blue | 7 | ||||||||
| 76 | Alecto Carrow | Female | Professor of Muggle Studies | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Spreading anti-Muggle propaganda | Pre 1981 | 13 | |||
| 77 | Amycus Carrow | Male | Professor of Dark Arts | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Cruciatus Curse | Pre 1982 | 13 | |||
| 78 | Helga Hufflepuff | Female | Founder of Hufflepuff | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Blue | Food-related Charms. Many traditional Hogwarts recipes originated with her | Pre 976 | 11th century | 16 | |
| 79 | Fat Friar | Male | Hufflepuff House Ghost | Hufflepuff | Unknown | Unknown | Ghost | Brown | Curing peasants of the pox | 10th century | Pre 1988 | 9 | |||
| 80 | Helena Ravenclaw | Female | Ravenclaw House Ghost | Ravenclaw | Unknown | Unknown | Ghost | Pure-blood or half-blood | Black | Grey | Post 982 | 996-1000 | 16 | ||
| 81 | Nymphadora Tonks | Female | Auror | Hufflepuff | Unknown | Jack rabbit, Wolf | Human | Half-blood | Variable | Variable | Ministry of Magic | Order of the Phoenix | Talented Auror, Metamorphmagus | 1 September 1972- 31 August 1973 | 2 May, 1998 | 16 |
| 82 | Pomona Sprout | Female | Professor of Herbology | Head of Hufflepuff House | Hufflepuff | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Grey | Herbology | 15 May | 13 | |||
| 83 | Newton Scamander | Male | Employee in the Beast Division of the Department for the Regulation and Control of Magical Creatures | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Red brown | Blue | Magizoology, Order of Merlin, Second Class | 24 February 1897 | 16 | ||
| 84 | Cedric Diggory | Male | Student | Hufflepuff | 12¼", Ash, unicorn hair | Unknown | Human | Pure-blood | Dark | Grey | Skilled Seeker | 1 September - 30 October 1977 | 24 June, 1995 | 14 | |
| 85 | Justin Finch-Fletchley | Male | Student | Hufflepuff | Unknown | Non-corporeal | Human | Muggle-born | Red | Dumbledore's Army | 1 September 1979- 31 August 1980 | 22 | |||
| 86 | Zacharias Smith | Male | Student | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Blonde | Dumbledore's Army | Chaser | 1 September 1979 - 2 May 1981 | 15 | ||
| 87 | Hannah Abbott | Female | Student | Hufflepuff | Unknown | Non-corporeal | Human | Half-blood | Blonde | Brown | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | 13 | |
| 88 | Ernest Macmillan | Male | Student | Hufflepuff | Unknown | Boar | Human | Pure-blood | Blond | Dumbledore's Army | Revising, being a Prefect, getting the wrong end of the stick | 21 April 1980 - 31 August 1980 | 16 | ||
| 89 | Susan Bones | Female | Student | Hufflepuff | Unknown | Unknown | Human | Half-blood | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | 11 | |||
| 90 | Walden Macnair | Male | Executioner for the Committee for the Disposal of Dangerous Creatures | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Lord Voldemort | Death Eaters | Liaising with giants | In or before 1970s | 14 | ||
| 91 | Augustus Rookwood | Male | Unspeakable | Slytherin | Unknown | None | Human | Pure-blood or half-blood | Brown/greying | Lord Voldemort | Death Eaters | Spying for Lord Voldemort | pre 1964 | 17 | ||
| 92 | Antonin Dolohov | Male | Death Eater | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Dark | Lord Voldemort | Death Eaters | Duelling. Fought and killed Molly Weasley's brothers and Remus Lupin | pre 1950 | 15 | ||
| 93 | Corban Yaxley | Male | Head of the Department of Magical Law Enforcement | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Blonde | Blue | Lord Voldemort | Death Eaters | Imperius curse, undercover work | Pre 1970s | 13 | |
| 94 | Igor Karkaroff | Male | Headmaster of Durmstrang Institute | Unknown | None | Human | Pure-blood or Half-blood | Silver| formerly black | Skilled in the Dark Arts | pre 1965 | 24 June, 1995 – 31 July, 1996 | 14 | |||
| 95 | Kingsley Shacklebolt | Male | Auror | Minister for Magic | Unknown | Lynx | Human | Pure-blood | Bald | Black | Order of the Phoenix | Exceptionally skilled duellist and Auror | Pre 1973 | 20 | ||
| 96 | Alastor Moody | Male | Auror | Unknown | Non-corporeal | Human | Pure-blood | Grey | One dark, one electric blue | Order of the Phoenix | A highly accomplished Auror and an outstanding duellist, also skilled in non-verbal magic | Pre 1960 | 27 July, 1997 | 13 | |
| 97 | Alice Longbottom | Female | Auror | Unknown | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | 16 | ||||
| 98 | Frank Longbottom | Male | Auror | Gryffindor | Inherited by his son, Neville. It was broken in battle at the Department of Mysteries. | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | 1 September 1957 - 31 August 1959 or earlier | 16 | ||
| 99 | Rufus Scrimgeour | Male | Head of Auror Office| Minister for Magic | Unknown | Non-corporeal | Human | Tawny | Yellowish | Minister of Magic | Highly regarded as a skilled Auror | Pre 1968 | 1 August, 1997 | 16 | ||
| 100 | Cornelius Oswald Fudge | Male | Minister for Magic | Unknown | Non-corporeal | Human | Pure-blood or Half-blood | Grey | Minister of Magic | Turning a blind eye to the continuing threat of Dark Magic in the name of keeping up morale | Pre 1964 | 22 | |||
| 101 | Barty Crouch Sr. | Male | Head of the Department of International Magical Cooperation | Unknown | Non-corporeal | Human | Pure-blood | Grey | Minister of Magic | Multilingual, able to fight the Imperius curse | Pre 1940 | 27 May, 1995 | 16 | ||
| 102 | Amos Diggory | Male | Employee of the Department for the Regulation and Control of Magical Creatures[ | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Brown | Ruddy | Minister of Magic | Works for the Department for the Regulation and Control of Magical Creatures | 12 | |||
| 103 | Dedalus Diggle | Male | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Order of the Phoenix | An enthusiastic volunteer for the Order and a helpful escort for Harry and his relatives | Pre 1964 | 14 | |||||
| 104 | Elphias Doge | Male | Special Advisor to the Wizengamot | Unknown | Non-corporeal | Human | Pure-blood | Silver | Grey/Blue[ | Order of the Phoenix | Writing | 1 September 1880 - 31 August 1881 | 12 | ||
| 105 | Fleur Isabelle Delacour | Female | Part-time at Gringotts Wizarding Bank | Beauxbatons Academy of Magic | 9½", Rosewood, veela hair | Non-corporeal | Human | Quarter-Veela | Silvery-blonde | Dark blue[ | Order of the Phoenix | part Veela, and therefore possesses some of their magical powers. She was also selected to compete in the Triwizard Tournament | Pre 30 October, 1977 | 23 | |
| 106 | Aberforth Dumbledore | Male | Owner and Barman of the Hog's Head Inn | Unknown | Goat | Human | Half-blood | Grey | Bright Blue | Order of the Phoenix | Bartending, caring for Ariana | 1 September 1883-31 August 1884 | 20 | ||
| 107 | Mundungus Fletcher | Male | Dealer of wizarding artifacts | Unknown | Non-corporeal | Human | Half-blood[ | Ginger | Brown | Order of the Phoenix | Gathering information for the Order, dealing in stolen cauldrons, 'acquiring' the odd Muggle car | Before 1962 | 18 | ||
| 108 | Sturgis Podmore | Male | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Straw-coloured | Brown | Order of the Phoenix | Carrying out guard duty for the Order | 8 September 1956 - 7 September 1957 | 15 | ||
| 109 | Hestia Jones | Female | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Order of the Phoenix | Carrying out escort missions for the Order | Pre 1978 | 12 | |||
| 110 | Marlene McKinnon | Female | Unknown | Unknown | Human | Red | Brown | Original Order of the Phoenix | July, 1981 | 16 | |||||
| 111 | Fabian Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Grey | Original Order of the Phoenix | Duelling | 1981 | 14 | |||
| 112 | Gideon Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Dark Grey | Original Order of the Phoenix | Duelling | 1981 | 14 | |||
| 113 | Emmeline Vance | Female | Advance Guard | Unknown | Unknown | Human | Order of the Phoenix | pre 1964 | Early July, 1996 | 14 | |||||
| 114 | Edgar Bones | Male | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-brown | Grey | Original Order of the Phoenix | Said to be a great wizard | 1981 | 11 | ||
| 115 | Dorcas Meadowes | Female | Unknown | Unknown | Human | Black | Brown | Original Order of the Phoenix | 1981 | 15 | |||||
| 116 | Benjy Fenwick | Male | Unknown | Unknown | Human | Black | Black | Original Order of the Phoenix | 1981 | 13 | |||||
| 117 | Madame Olympe Maxime | Female | Headmistress of Beauxbatons Academy of Magic | Beauxbatons Academy of Magic | Unknown | Unknown | Half-Human/Half-Giant | Part-Human (Half-giant) | Brown | Black | An ‘excellent dancer’, in the words of Dumbledore himself | 20 | |||
| 118 | Gabrielle Delacour | Female | Beauxbatons Academy of Magic | Unknown | Unknown | Human | Quarter-Veela | Silvery-blonde | part Veela and therefore may possess some of their magical powers | 31 July 1985 - 30 July 1986 | 18 | ||||
| 119 | Viktor Krum | Male | Seeker for the Bulgarian National Quidditch team | Durmstrang Institute | 10¼", Hornbeam, dragon heartstring | Unknown | Human | Pure-blood or half-blood | Dark | Dark | One of the best Seekers in the world | April-August, 1976 | 11 | ||
| 120 | Petunia Dursley | Female | Human | Muggle | Blonde | Pre 1960 | 15 | ||||||||
| 121 | Vernon Dursley | Male | Director at Grunnings | Human | Muggle | Black | Schmoozing clients, pretending magic doesn't exist | Pre 1954 | 14 | ||||||
| 122 | Dudley Dursley | Male | Human | Muggle | Blond | Blue | 23 June 1980 | 14 | |||||||
| 123 | Marge Dursley | Female | Dog breeder | Human | Muggle | Grey | Breeding bulldogs | Pre 1954 | 13 | ||||||
| 124 | Dennis Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy brown | Dumbledore's Army | 1 September 1982 - 31 August 1983 | 14 | |||
| 125 | Albus Severus Potter | Male | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Jet-black | Bright green | Between 1 September 2005-31 August 2006 | 20 | |||
| 126 | Scorpius Hyperion Malfoy | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | White blond | Grey | Between 1 September 2005-31 August 2007 | 24 | |||
| 127 | Edward Remus Lupin | Male | Student | Hufflepuff | Unknown | Unknown | Human (Metamorphmagus) | Half-blood | Variable | Variable | April, 1998 | 18 | |||
| 128 | James Sirius Potter | Male | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | 1 September 2003-31 August 2004 | 19 | |||||
| 129 | Rose Granger-Weasley | Female | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | Red | Chaser | 1 September 2005-31 August 2006 | 20 | |||
| 130 | Argus Filch | Male | Caretaker of Hogwarts | Human | Squib | Grey | Pale | Hogwarts School of Witchcraft and Wizardry | Sniffing out mischief | Pre 1951 | 11 | ||||
| 131 | Poppy Pomfrey | Female | Matron at Hogwarts School | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Hogwarts School of Witchcraft and Wizardry | Skilled medical healer | pre 1954 | 13 | ||||
| 132 | Rolanda Hooch | Female | Flying Instructor at Hogwarts | Unknown | Non-corporeal | Human | Grey | Yellow | Hogwarts School of Witchcraft and Wizardry | Teaching, flying, refereeing Quidditch matches | pre 1918 | 13 | |||
| 133 | Irma Pince | Female | Librarian at Hogwarts | Unknown | Non-corporeal | Human | Hogwarts School of Witchcraft and Wizardry | Pre 1966 | 10 | ||||||
| 134 | Aurora Sinistra | Female | Astronomer at Hogwarts | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Hogwarts School of Witchcraft and Wizardry | Pre 1968 | 15 | |||
| 135 | Septima Vector | Female | Professor of Arithmancyat Hogwarts | Unknown | Unknown | Human | Black | Hogwarts School of Witchcraft and Wizardry | Before 1974 | 14 | |||||
| 136 | Wilhelmina Grubbly-Plank | Female | Substitute professor of Care of Magical Creatures at Hogwarts | Unknown | Non-corporeal | Human | Grey | Hogwarts School of Witchcraft and Wizardry | 24 | ||||||
| 137 | Fenrir Greyback | Male | Unknown | None | Werewolf | Grey | Lord Voldemort | Death Eaters | Physical combat | Pre 1945 | 15 | |||||
| 138 | Gellert Grindelwald | Male | Revolutionary leader(c. 1920s[6] – 1945) | 15", Elder, Thestral tail hair core | Human | Pure-blood or half-blood | Blond | Blue | Gellert Grindelwald's Acolytes | Duelling | 1883 | March, 1998 | 19 | ||
| 139 | Dobby | Male | Malfoy family's house-elf (? - 1993), Hogwarts kitchens worker (December 1994 - 1998) | | | | | | | |House elf | | | |Green | | | | | |A type of magic specific to house-elves, performed without a wand which includes the ability to apparate, disarm and make objects levitate | |28 June | |Late March, 1998 | | |
| 140 | Kreacher | Male | Black family's house-elf (?-1996), Harry Potter's house-elf, Hogwarts kitchen worker | | | | | | | |House elf | | | |White | | | | | |Magic performed without a wand which includes the ability to apparate, disarm and make objects levitate | | | | | | |
Modificar una existente:
En este caso mutate toma el resultado de la condición y lo reemplaza con TRUE o FALSE dependiendo si se cumple la condición en una nueva columna.
hp_data |> mutate(Ocupacion = Job == "Student") | Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death | Ocupacion |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Harry James Potter | Male | Student | Gryffindor | 11" Holly phoenix feather | Stag | Human | Half-blood | Black | Bright green | Albus Dumbledore | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Parseltongue| Defence Against the Dark Arts | Seeker | 31 July 1980 | TRUE | |
| 2 | Ronald Bilius Weasley | Male | Student | Gryffindor | 12" Ash unicorn tail hair | Jack Russell terrier | Human | Pure-blood | Red | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Wizard chess | Quidditch goalkeeping | 1 March 1980 | TRUE | |
| 3 | Hermione Jean Granger | Female | Student | Gryffindor | 10¾" vine wood dragon heartstring | Otter | Human | Muggle-born | Brown | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Almost everything | 19 September, 1979 | TRUE | |
| 4 | Albus Percival Wulfric Brian Dumbledore | Male | Headmaster | Gryffindor | 15" Elder Thestral tail hair core | Phoenix | Human | Half-blood | Silver| formerly auburn | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Considered by many to be one of the most powerful wizards of his time | Late August 1881 | 30 June, 1997 | FALSE |
| 5 | Rubeus Hagrid | Male | Keeper of Keys and Grounds | Professor of Care of Magical Creatures | Gryffindor | 16" Oak unknown core | None | Half-Human/Half-Giant | Part-Human (Half-giant) | Black | Black | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Resistant to stunning spells| above average strength | crossbowmanship | 6 December 1928 | FALSE | |
| 6 | Neville Longbottom | Male | Student | Gryffindor | 13" Cherry unicorn hair | Non-corporeal | Human | Pure-blood | Blond | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Herbology | 30 July, 1980 | TRUE | ||
| 7 | Fred Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | 2 May, 1998 | TRUE |
| 8 | George Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | TRUE | |
| 9 | Ginevra (Ginny) Molly Weasley | Female | Student | Gryffindor | Unknown | Horse | Human | Pure-blood | Red | Bright brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Chaser| Bat-Bogey hex | 11 August, 1981 | TRUE | |
| 10 | Dean Thomas | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Black | Brown | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1979- 31 August 1980 | TRUE | |
| 11 | Seamus Finnigan | Male | Student | Gryffindor | Unknown | Fox | Human | Half-blood | Sandy | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Pyrotechnics | 1 September 1979- 31 August 1981 | TRUE | ||
| 12 | Lily J. Potter | Female | Gryffindor | 10¼" Willow unknown core | Doe | Human | Muggle-born | Auburn | Bright green | Order of the Phoenix | 30 January, 1960 | 31 October, 1981 | FALSE | ||
| 13 | James Potter | Male | Gryffindor | 11" Mahogany unknown core | Stag | Human | Pure-blood | Black | Hazel | Order of the Phoenix | Animagus| Seeker | 27 March, 1960 | 31 October, 1981 | FALSE | |
| 14 | Sirius Black | Male | Gryffindor | Unknown | Unknown | Human | Pure-blood | Black | Grey | Order of the Phoenix | Animagus| nonverbal magic| Charms | 3 November, 1959 | 18 June, 1996 | FALSE | |
| 15 | Remus John Lupin | Male | Professor of Defence Against the Dark Arts | Gryffindor | 10¼" Cypress unicorn hair | Wolf | Werewolf | Half-blood | Light brown flecked with grey | Green | Order of the Phoenix | Exceptionally gifted in Defence Against the Dark Arts | 10 March, 1960 | 2 May, 1998 | FALSE |
| 16 | Peter Pettigrew | Male | The Servant of Lord Voldemort | Gryffindor | 9¼" Chestnut dragon heartstring | None | Human | Half-blood or pure-blood | Colourless and balding | Blue | Lord Voldemort| Death Eaters | Animagus | 1 September 1959- 31 August 1960 | Late March 1998 | FALSE |
| 17 | Percy Ignatius Weasley | Male | Student|Prefect| Personal assistant to Barty Crouch Snr | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Blue | Order of the Phoenix| Hogwarts School of Witchcraft and Wizardry |British Ministry of Magic | Intelligent| hard-working| a model student | 22 August, 1976 | FALSE | |
| 18 | (Bill) William Arthur Weasley | Male | Curse-Breaker for Gringotts Bank | Gryffindor | Unknown | Unknown | Human (Werewolf traits) | Pure-blood | Red | Blue | Order of the Phoenix | Highly skilled curse-breaker for Gringotts Wizarding Bank| very intelligent| past Hogwarts Head Boy | 29 November, 1970 | FALSE | |
| 19 | Charles Weasley | Male | Dragonologist | Gryffindor | 12" Ash unicorn tail hair | Unknown | Human | Pure-blood | Red | Grey | Order of the Phoenix | Gringotts Wizarding Bank | Highly skilled dragon trainer| one-time Gryffindor Seeker | 12 December, 1972 | FALSE | |
| 20 | Lee Jordan | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Quidditch commentary | broadcasting | 1 September 1977- 31 August 1978 | TRUE | |
| 21 | Oliver Wood | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or Half-blood | Hogwarts School of Witchcraft and Wizardry | Keeper| Captain of the Gryffindor Quidditch team | October 1975 - 31 August 1976 | TRUE | |||
| 22 | Angelina Johnson | Female | Student | Gryffindor | Unknown | Unknown | Human | Unknown | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 24 – 30 October, 1977 | TRUE | |
| 23 | Katie Bell | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1978- 31 August 1979 | TRUE | |
| 24 | Alicia Spinnet | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1977- 31 August 1978 | TRUE | |
| 25 | Lavender Brown | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Blond | Blue | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 31 August 1980 | 2 May, 1998 | TRUE |
| 26 | Parvati Patil | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 21 April 1980 | TRUE | |
| 27 | Romilda Vane | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spiking Chocolate Cauldrons with love potion | 1 September 1981- 31 August 1982 | TRUE | |
| 28 | Colin Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Photography | 3 May - 31 August 1981 | 2 May, 1998 | TRUE | |
| 29 | Cormac McLaggen | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Blond | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Quidditch Keeper | 1 September 1978- 31 August 1979 | TRUE | ||
| 30 | Minerva McGonagall | Female | Professor of Transfiguration | Head of Gryffindor | Gryffindor | 9½" Fir dragon heartstring | Cat | Human | Half-blood | Black | Green | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Animagus | 4 October | FALSE | |
| 31 | Molly Weasley | Female | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Bright brown | Order of the Phoenix | Household spells| healing magic | 30 October, 1949 | FALSE | ||
| 32 | Arthur Weasley | Male | Head of the Misuse of Muggle Artefacts Office | Gryffindor | Unknown | Weasel | Human | Pure-blood | Red | Green | Order of the Phoenix| British Ministry of Magic | Muggle world works | 6 February, 1950 | FALSE | |
| 33 | Quirinus Quirrell | Male | Defence Against the Dark Arts(1991-1992) | Ravenclaw | 9" Alder unicorn hair bendy | Non-corporeal | Human | Half-blood | Lord Voldemort | Learned in the theory of Defensive Magic| less adept in the practise | 26 September,1970 or earlier | 4 June 1992 | FALSE | ||
| 34 | Cho Chang | Female | Student | Ravenclaw | Unknown | Swan | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Seeker | 1 September 1978-31 August 1979 | TRUE | |
| 35 | Luna Lovegood | Female | Student | Ravenclaw | Unknown | Hare | Human | Pure-blood or half-blood | Dirty-blonde | Pale silvery | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spotting Nargles | 13 February, 1981 | TRUE | |
| 36 | Gilderoy Lockhart | Male | Defence Against the Dark Arts(1992-1993) | Ravenclaw | 9" Cherry dragon heartstring | Non-corporeal | Human | Half-blood | Blond | Blue | 26 January 1964 | FALSE | |||
| 37 | Filius Flitwick | Male | Professor of Charms | Head of Ravenclaw | Ravenclaw | Unknown | Non-corporeal | Human(goblin ancestry) | Part-Goblin | White | Charms | 17 October 1958 or earlier | FALSE | |||
| 38 | Sybill Patricia Trelawney | Female | Professor of Divination | Ravenclaw | 9 ½” hazel unicorn hair core | Non-corporeal | Human | Half-blood | A Seer, though the gift is unpredictable and unconscious | 9 March prior to 1962 | FALSE | ||||
| 39 | Garrick Ollivander | Male | Wandmaker | Ravenclaw | 12¾" Hornbeam dragon heartstring | Non-corporeal | Human | Half-blood | Silvery | An incomparable understanding of wandcraft | 25 September, pre 1908 | FALSE | |||
| 40 | Myrtle Elizabeth Warren (Moaning Myrtle) | Female | Student | Ravenclaw | Unknown | Unknown | Ghost | Muggle-born | 14 June 1928 -13 June 1929 | 13 June, 1943 | TRUE | ||||
| 41 | Padma Patil | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979 - 21 April 1980 | TRUE | |
| 42 | Michael Corner | Male | Student | Ravenclaw | Unknown | Squirrel | Human | Half-blood | Black | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions | 1 September 1979 - 31 August 1980 | TRUE | |
| 43 | Marietta Edgecombe | Female | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-blonde | Grey | Covering up the spots that blight her face after betraying Dumbledore's Army | 1978-1979 | TRUE | ||
| 44 | Terry Boot | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions, also knowledgable about Charms | 1 September 1979- 21 April 1980 | TRUE | |||
| 45 | Anthony Goldstein | Male | Student | Ravenclaw | Unknown | Non-corporeal | Human | Half-blood | Blonde | Grey | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979- 31 August 1980 | TRUE | |
| 46 | Severus Snape | Male | Professor of Potions | Head of Slytherin | Slytherin | Unknown | Doe | Human | Half-blood | Black | Black | Extremely skilled at potions and Occlumency | 9 January 1960 | 2 May, 1998 | FALSE | |
| 47 | Draco Malfoy | Male | Student | Slytherin | 10" Hawthorn unicorn hair | Unknown | Human | Pure-blood | White-blond | Grey | Prefect, Seeker | 5 June, 1980 | TRUE | ||
| 48 | Vincent Crabbe | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Black | Black | Beater | c. 1979-1980 | 2 May, 1998 | TRUE | |
| 49 | Gregory Goyle | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | Beater | 1 September 1979-31 August 1980 | TRUE | |||
| 50 | Bellatrix Lestrange | Female | Slytherin | 12¾" Walnut dragon heartstring | Human | Pure-blood | Black | Lord Voldemort | Death Eaters | She is a duellist of great skill and an experienced Occlumens | 1951 | 2 May, 1998 | FALSE | |||
| 51 | Dolores Jane Umbridge | Female | Professor of Defence Against the Dark Arts | Department of Magical Law Enforcement | Slytherin | 8" Birch dragon heartstring | Cat | Human | Half-blood | Iron grey | Ministry of Magic | Her punishment quill is of her own invention | 26 August | FALSE | ||
| 52 | Horace Eugene Flaccus Slughorn | Professor of Potions | Slytherin | 10¼" Cedar dragon heartstring fairly flexible | Non-corporeal | Human | Pure-blood or half-blood | Bald | Gooseberry | Accomplished Occlumens, expert Potioneer, advanced self-transfiguration | 28 April | FALSE | |||
| 53 | Lucius Malfoy | Male | School Governor | Slytherin | Elm and dragon heartstring | Unknown | Human | Pure-blood | White-blond | Grey | Lord Voldemort | Death Eaters | Skilled duellist and potioneer | c. 1954 | FALSE | |
| 54 | Narcissa Malfoy | Female | Slytherin | Unknown | Unknown | Human | Pure-blood | Blonde | Blue | Lord Voldemort | Death Eaters | 1955 | FALSE | |||
| 55 | Regulus Arcturus Black | Male | Slytherin | Unknown | Non-corporeal | Human | Pure-blood | Black | Seeker | 1961 | 1979 | FALSE | |||
| 56 | Pansy Parkinson | Female | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Prefect | 1 September 1979- 31 August 1980 | TRUE | ||||
| 57 | Blaise Zabini | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Chaser | 1 September, 1979 – 21 April, 1980 | TRUE | ||
| 58 | Tom Marvolo Riddle | Male | Student | Slytherin | 13½" Yew phoenix feather core | Unknown | Human | Half-blood | Bald | Scarlet | Dark Lord, Outstanding manipulation, Parseltongue, Heir of Slytherin, Dark magic, Inferi creation and control | 31 December 1926 | 2 May, 1998 | TRUE | |
| 59 | Theodore Nott | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | 1 September, 1979 – 21 April, 1980 | TRUE | ||||
| 60 | Rodolphus Lestrange | Male | Slytherin | Unknown | Unknown | Human | Pure-blood | Dark | Dark | Lord Voldemort | Death Eaters | Pre 1964 | FALSE | |||
| 61 | Millicent Bulstrode | Female | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Black | 1 September 1979- 31 August 1980 | TRUE | ||||
| 62 | Graham Montague | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Quidditch captain, Chaser | In or prior to c.1981 | TRUE | ||
| 63 | Bloody Baron | Male | Slytherin House Ghost | Slytherin | Unknown | Unknown | Ghost | Pure-blood or half-blood | Controlling Peeves | Post 982 | 11th century | FALSE | |||
| 64 | Marcus Flint | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Chaser, Captain | 1 September 1975- 31 August 1976 | TRUE | |||
| 65 | Penelope Clearwater | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Muggle-born or half-blood[ | Blonde | Prefect | 1 September 1975- 31 August 1976 | TRUE | |||
| 66 | Roger Davies | Male | Student | Ravenclaw | Unknown | Unknown | Human | Dark | Dark | Quidditch Captain, Chaser | 1 September 1977- 31 August 1978 | TRUE | |||
| 67 | Marcus Belby | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Dark | 1 September 1978 - 31 August 1979 | TRUE | |||
| 68 | Salazar Slytherin | Male | Founder of Slytherin | Slytherin | snakewood, Basilisk horn | Unknown | Human | Pure-blood | Grey | Dark | Accomplished Legilimens and one of the first recorded Parselmouths | Pre 976 | 11th century | FALSE | |
| 69 | Godric Gryffindor | Male | Founder of Gryffindor | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Red | Green | The most accomplished duellist of his time | Pre 976 | 11th century | FALSE | |
| 70 | Rowena Ravenclaw | Female | Founder of Ravenclaw | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Extremely skilled witch, known for her intelligence and wisdom | Pre 976 | 11th century | FALSE | |
| 71 | Nicholas de Mimsy-Porpington | Male | Gryffindor House Ghost | Gryffindor | Unknown | Unknown | Ghost | Grey | 1401 -1475 | 31 October, 1492 | FALSE | ||||
| 72 | Cuthbert Binns | Male | Professor of History of Magic | Unknown | Unknown | Ghost | White (balding) | Black | Boring a class with facts that might be interesting if anyone else was giving the lesson | Pre 1970s | FALSE | ||||
| 73 | Barty Crouch Jr. | Male | Professor of Defence Against the Dark Arts (as Alastor Moody) | Unknown | Unknown | Human | Pure-blood or half-blood | Straw blond | Pale, freckled | Lord Voldemort | Death Eaters | Skilled potioneer | 1962 | 1995-1996 | FALSE | |
| 74 | Charity Burbage | Female | Professor of Muggle Studies | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Blonde | Teaching and studying the Muggle world | Before 1976 | Late July, 1997 | FALSE | |||
| 75 | Firenze | Male | Professor of Divination | Centaur | White-blond | Astonishingly blue | FALSE | ||||||||
| 76 | Alecto Carrow | Female | Professor of Muggle Studies | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Spreading anti-Muggle propaganda | Pre 1981 | FALSE | |||
| 77 | Amycus Carrow | Male | Professor of Dark Arts | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Cruciatus Curse | Pre 1982 | FALSE | |||
| 78 | Helga Hufflepuff | Female | Founder of Hufflepuff | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Blue | Food-related Charms. Many traditional Hogwarts recipes originated with her | Pre 976 | 11th century | FALSE | |
| 79 | Fat Friar | Male | Hufflepuff House Ghost | Hufflepuff | Unknown | Unknown | Ghost | Brown | Curing peasants of the pox | 10th century | Pre 1988 | FALSE | |||
| 80 | Helena Ravenclaw | Female | Ravenclaw House Ghost | Ravenclaw | Unknown | Unknown | Ghost | Pure-blood or half-blood | Black | Grey | Post 982 | 996-1000 | FALSE | ||
| 81 | Nymphadora Tonks | Female | Auror | Hufflepuff | Unknown | Jack rabbit, Wolf | Human | Half-blood | Variable | Variable | Ministry of Magic | Order of the Phoenix | Talented Auror, Metamorphmagus | 1 September 1972- 31 August 1973 | 2 May, 1998 | FALSE |
| 82 | Pomona Sprout | Female | Professor of Herbology | Head of Hufflepuff House | Hufflepuff | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Grey | Herbology | 15 May | FALSE | |||
| 83 | Newton Scamander | Male | Employee in the Beast Division of the Department for the Regulation and Control of Magical Creatures | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Red brown | Blue | Magizoology, Order of Merlin, Second Class | 24 February 1897 | FALSE | ||
| 84 | Cedric Diggory | Male | Student | Hufflepuff | 12¼", Ash, unicorn hair | Unknown | Human | Pure-blood | Dark | Grey | Skilled Seeker | 1 September - 30 October 1977 | 24 June, 1995 | TRUE | |
| 85 | Justin Finch-Fletchley | Male | Student | Hufflepuff | Unknown | Non-corporeal | Human | Muggle-born | Red | Dumbledore's Army | 1 September 1979- 31 August 1980 | TRUE | |||
| 86 | Zacharias Smith | Male | Student | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Blonde | Dumbledore's Army | Chaser | 1 September 1979 - 2 May 1981 | TRUE | ||
| 87 | Hannah Abbott | Female | Student | Hufflepuff | Unknown | Non-corporeal | Human | Half-blood | Blonde | Brown | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | TRUE | |
| 88 | Ernest Macmillan | Male | Student | Hufflepuff | Unknown | Boar | Human | Pure-blood | Blond | Dumbledore's Army | Revising, being a Prefect, getting the wrong end of the stick | 21 April 1980 - 31 August 1980 | TRUE | ||
| 89 | Susan Bones | Female | Student | Hufflepuff | Unknown | Unknown | Human | Half-blood | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | TRUE | |||
| 90 | Walden Macnair | Male | Executioner for the Committee for the Disposal of Dangerous Creatures | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Lord Voldemort | Death Eaters | Liaising with giants | In or before 1970s | FALSE | ||
| 91 | Augustus Rookwood | Male | Unspeakable | Slytherin | Unknown | None | Human | Pure-blood or half-blood | Brown/greying | Lord Voldemort | Death Eaters | Spying for Lord Voldemort | pre 1964 | FALSE | ||
| 92 | Antonin Dolohov | Male | Death Eater | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Dark | Lord Voldemort | Death Eaters | Duelling. Fought and killed Molly Weasley's brothers and Remus Lupin | pre 1950 | FALSE | ||
| 93 | Corban Yaxley | Male | Head of the Department of Magical Law Enforcement | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Blonde | Blue | Lord Voldemort | Death Eaters | Imperius curse, undercover work | Pre 1970s | FALSE | |
| 94 | Igor Karkaroff | Male | Headmaster of Durmstrang Institute | Unknown | None | Human | Pure-blood or Half-blood | Silver| formerly black | Skilled in the Dark Arts | pre 1965 | 24 June, 1995 – 31 July, 1996 | FALSE | |||
| 95 | Kingsley Shacklebolt | Male | Auror | Minister for Magic | Unknown | Lynx | Human | Pure-blood | Bald | Black | Order of the Phoenix | Exceptionally skilled duellist and Auror | Pre 1973 | FALSE | ||
| 96 | Alastor Moody | Male | Auror | Unknown | Non-corporeal | Human | Pure-blood | Grey | One dark, one electric blue | Order of the Phoenix | A highly accomplished Auror and an outstanding duellist, also skilled in non-verbal magic | Pre 1960 | 27 July, 1997 | FALSE | |
| 97 | Alice Longbottom | Female | Auror | Unknown | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | FALSE | ||||
| 98 | Frank Longbottom | Male | Auror | Gryffindor | Inherited by his son, Neville. It was broken in battle at the Department of Mysteries. | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | 1 September 1957 - 31 August 1959 or earlier | FALSE | ||
| 99 | Rufus Scrimgeour | Male | Head of Auror Office| Minister for Magic | Unknown | Non-corporeal | Human | Tawny | Yellowish | Minister of Magic | Highly regarded as a skilled Auror | Pre 1968 | 1 August, 1997 | FALSE | ||
| 100 | Cornelius Oswald Fudge | Male | Minister for Magic | Unknown | Non-corporeal | Human | Pure-blood or Half-blood | Grey | Minister of Magic | Turning a blind eye to the continuing threat of Dark Magic in the name of keeping up morale | Pre 1964 | FALSE | |||
| 101 | Barty Crouch Sr. | Male | Head of the Department of International Magical Cooperation | Unknown | Non-corporeal | Human | Pure-blood | Grey | Minister of Magic | Multilingual, able to fight the Imperius curse | Pre 1940 | 27 May, 1995 | FALSE | ||
| 102 | Amos Diggory | Male | Employee of the Department for the Regulation and Control of Magical Creatures[ | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Brown | Ruddy | Minister of Magic | Works for the Department for the Regulation and Control of Magical Creatures | FALSE | |||
| 103 | Dedalus Diggle | Male | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Order of the Phoenix | An enthusiastic volunteer for the Order and a helpful escort for Harry and his relatives | Pre 1964 | FALSE | |||||
| 104 | Elphias Doge | Male | Special Advisor to the Wizengamot | Unknown | Non-corporeal | Human | Pure-blood | Silver | Grey/Blue[ | Order of the Phoenix | Writing | 1 September 1880 - 31 August 1881 | FALSE | ||
| 105 | Fleur Isabelle Delacour | Female | Part-time at Gringotts Wizarding Bank | Beauxbatons Academy of Magic | 9½", Rosewood, veela hair | Non-corporeal | Human | Quarter-Veela | Silvery-blonde | Dark blue[ | Order of the Phoenix | part Veela, and therefore possesses some of their magical powers. She was also selected to compete in the Triwizard Tournament | Pre 30 October, 1977 | FALSE | |
| 106 | Aberforth Dumbledore | Male | Owner and Barman of the Hog's Head Inn | Unknown | Goat | Human | Half-blood | Grey | Bright Blue | Order of the Phoenix | Bartending, caring for Ariana | 1 September 1883-31 August 1884 | FALSE | ||
| 107 | Mundungus Fletcher | Male | Dealer of wizarding artifacts | Unknown | Non-corporeal | Human | Half-blood[ | Ginger | Brown | Order of the Phoenix | Gathering information for the Order, dealing in stolen cauldrons, 'acquiring' the odd Muggle car | Before 1962 | FALSE | ||
| 108 | Sturgis Podmore | Male | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Straw-coloured | Brown | Order of the Phoenix | Carrying out guard duty for the Order | 8 September 1956 - 7 September 1957 | FALSE | ||
| 109 | Hestia Jones | Female | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Order of the Phoenix | Carrying out escort missions for the Order | Pre 1978 | FALSE | |||
| 110 | Marlene McKinnon | Female | Unknown | Unknown | Human | Red | Brown | Original Order of the Phoenix | July, 1981 | FALSE | |||||
| 111 | Fabian Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Grey | Original Order of the Phoenix | Duelling | 1981 | FALSE | |||
| 112 | Gideon Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Dark Grey | Original Order of the Phoenix | Duelling | 1981 | FALSE | |||
| 113 | Emmeline Vance | Female | Advance Guard | Unknown | Unknown | Human | Order of the Phoenix | pre 1964 | Early July, 1996 | FALSE | |||||
| 114 | Edgar Bones | Male | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-brown | Grey | Original Order of the Phoenix | Said to be a great wizard | 1981 | FALSE | ||
| 115 | Dorcas Meadowes | Female | Unknown | Unknown | Human | Black | Brown | Original Order of the Phoenix | 1981 | FALSE | |||||
| 116 | Benjy Fenwick | Male | Unknown | Unknown | Human | Black | Black | Original Order of the Phoenix | 1981 | FALSE | |||||
| 117 | Madame Olympe Maxime | Female | Headmistress of Beauxbatons Academy of Magic | Beauxbatons Academy of Magic | Unknown | Unknown | Half-Human/Half-Giant | Part-Human (Half-giant) | Brown | Black | An ‘excellent dancer’, in the words of Dumbledore himself | FALSE | |||
| 118 | Gabrielle Delacour | Female | Beauxbatons Academy of Magic | Unknown | Unknown | Human | Quarter-Veela | Silvery-blonde | part Veela and therefore may possess some of their magical powers | 31 July 1985 - 30 July 1986 | FALSE | ||||
| 119 | Viktor Krum | Male | Seeker for the Bulgarian National Quidditch team | Durmstrang Institute | 10¼", Hornbeam, dragon heartstring | Unknown | Human | Pure-blood or half-blood | Dark | Dark | One of the best Seekers in the world | April-August, 1976 | FALSE | ||
| 120 | Petunia Dursley | Female | Human | Muggle | Blonde | Pre 1960 | FALSE | ||||||||
| 121 | Vernon Dursley | Male | Director at Grunnings | Human | Muggle | Black | Schmoozing clients, pretending magic doesn't exist | Pre 1954 | FALSE | ||||||
| 122 | Dudley Dursley | Male | Human | Muggle | Blond | Blue | 23 June 1980 | FALSE | |||||||
| 123 | Marge Dursley | Female | Dog breeder | Human | Muggle | Grey | Breeding bulldogs | Pre 1954 | FALSE | ||||||
| 124 | Dennis Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy brown | Dumbledore's Army | 1 September 1982 - 31 August 1983 | TRUE | |||
| 125 | Albus Severus Potter | Male | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Jet-black | Bright green | Between 1 September 2005-31 August 2006 | TRUE | |||
| 126 | Scorpius Hyperion Malfoy | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | White blond | Grey | Between 1 September 2005-31 August 2007 | TRUE | |||
| 127 | Edward Remus Lupin | Male | Student | Hufflepuff | Unknown | Unknown | Human (Metamorphmagus) | Half-blood | Variable | Variable | April, 1998 | TRUE | |||
| 128 | James Sirius Potter | Male | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | 1 September 2003-31 August 2004 | TRUE | |||||
| 129 | Rose Granger-Weasley | Female | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | Red | Chaser | 1 September 2005-31 August 2006 | TRUE | |||
| 130 | Argus Filch | Male | Caretaker of Hogwarts | Human | Squib | Grey | Pale | Hogwarts School of Witchcraft and Wizardry | Sniffing out mischief | Pre 1951 | FALSE | ||||
| 131 | Poppy Pomfrey | Female | Matron at Hogwarts School | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Hogwarts School of Witchcraft and Wizardry | Skilled medical healer | pre 1954 | FALSE | ||||
| 132 | Rolanda Hooch | Female | Flying Instructor at Hogwarts | Unknown | Non-corporeal | Human | Grey | Yellow | Hogwarts School of Witchcraft and Wizardry | Teaching, flying, refereeing Quidditch matches | pre 1918 | FALSE | |||
| 133 | Irma Pince | Female | Librarian at Hogwarts | Unknown | Non-corporeal | Human | Hogwarts School of Witchcraft and Wizardry | Pre 1966 | FALSE | ||||||
| 134 | Aurora Sinistra | Female | Astronomer at Hogwarts | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Hogwarts School of Witchcraft and Wizardry | Pre 1968 | FALSE | |||
| 135 | Septima Vector | Female | Professor of Arithmancyat Hogwarts | Unknown | Unknown | Human | Black | Hogwarts School of Witchcraft and Wizardry | Before 1974 | FALSE | |||||
| 136 | Wilhelmina Grubbly-Plank | Female | Substitute professor of Care of Magical Creatures at Hogwarts | Unknown | Non-corporeal | Human | Grey | Hogwarts School of Witchcraft and Wizardry | FALSE | ||||||
| 137 | Fenrir Greyback | Male | Unknown | None | Werewolf | Grey | Lord Voldemort | Death Eaters | Physical combat | Pre 1945 | FALSE | |||||
| 138 | Gellert Grindelwald | Male | Revolutionary leader(c. 1920s[6] – 1945) | 15", Elder, Thestral tail hair core | Human | Pure-blood or half-blood | Blond | Blue | Gellert Grindelwald's Acolytes | Duelling | 1883 | March, 1998 | FALSE | ||
| 139 | Dobby | Male | Malfoy family's house-elf (? - 1993), Hogwarts kitchens worker (December 1994 - 1998) | | | | | | | |House elf | | | |Green | | | | | |A type of magic specific to house-elves, performed without a wand which includes the ability to apparate, disarm and make objects levitate | |28 June | |Late March, 1998 | |FALSE |
| 140 | Kreacher | Male | Black family's house-elf (?-1996), Harry Potter's house-elf, Hogwarts kitchen worker | | | | | | | |House elf | | | |White | | | | | |Magic performed without a wand which includes the ability to apparate, disarm and make objects levitate | | | | | |FALSE |
En este ejemplo convierte a la columna en TRUE si el personaje es estudiante o FALSE si tiene alguna otra ocupación.
arrange() – ordenar filasLa función de arrange nos ayuda a ordenar las filas ya sea en orden ascendente o descendente.
# Ordena las filas por orden alfabetico de acuerdo al nombre de los personajes A a la Z
hp_data |> arrange(Name) | Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 18 | (Bill) William Arthur Weasley | Male | Curse-Breaker for Gringotts Bank | Gryffindor | Unknown | Unknown | Human (Werewolf traits) | Pure-blood | Red | Blue | Order of the Phoenix | Highly skilled curse-breaker for Gringotts Wizarding Bank| very intelligent| past Hogwarts Head Boy | 29 November, 1970 | |
| 106 | Aberforth Dumbledore | Male | Owner and Barman of the Hog's Head Inn | Unknown | Goat | Human | Half-blood | Grey | Bright Blue | Order of the Phoenix | Bartending, caring for Ariana | 1 September 1883-31 August 1884 | ||
| 96 | Alastor Moody | Male | Auror | Unknown | Non-corporeal | Human | Pure-blood | Grey | One dark, one electric blue | Order of the Phoenix | A highly accomplished Auror and an outstanding duellist, also skilled in non-verbal magic | Pre 1960 | 27 July, 1997 | |
| 4 | Albus Percival Wulfric Brian Dumbledore | Male | Headmaster | Gryffindor | 15" Elder Thestral tail hair core | Phoenix | Human | Half-blood | Silver| formerly auburn | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Considered by many to be one of the most powerful wizards of his time | Late August 1881 | 30 June, 1997 |
| 125 | Albus Severus Potter | Male | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Jet-black | Bright green | Between 1 September 2005-31 August 2006 | |||
| 76 | Alecto Carrow | Female | Professor of Muggle Studies | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Spreading anti-Muggle propaganda | Pre 1981 | |||
| 97 | Alice Longbottom | Female | Auror | Unknown | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | ||||
| 24 | Alicia Spinnet | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1977- 31 August 1978 | |
| 102 | Amos Diggory | Male | Employee of the Department for the Regulation and Control of Magical Creatures[ | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Brown | Ruddy | Minister of Magic | Works for the Department for the Regulation and Control of Magical Creatures | |||
| 77 | Amycus Carrow | Male | Professor of Dark Arts | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Cruciatus Curse | Pre 1982 | |||
| 22 | Angelina Johnson | Female | Student | Gryffindor | Unknown | Unknown | Human | Unknown | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 24 – 30 October, 1977 | |
| 45 | Anthony Goldstein | Male | Student | Ravenclaw | Unknown | Non-corporeal | Human | Half-blood | Blonde | Grey | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979- 31 August 1980 | |
| 92 | Antonin Dolohov | Male | Death Eater | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Dark | Lord Voldemort | Death Eaters | Duelling. Fought and killed Molly Weasley's brothers and Remus Lupin | pre 1950 | ||
| 130 | Argus Filch | Male | Caretaker of Hogwarts | Human | Squib | Grey | Pale | Hogwarts School of Witchcraft and Wizardry | Sniffing out mischief | Pre 1951 | ||||
| 32 | Arthur Weasley | Male | Head of the Misuse of Muggle Artefacts Office | Gryffindor | Unknown | Weasel | Human | Pure-blood | Red | Green | Order of the Phoenix| British Ministry of Magic | Muggle world works | 6 February, 1950 | |
| 91 | Augustus Rookwood | Male | Unspeakable | Slytherin | Unknown | None | Human | Pure-blood or half-blood | Brown/greying | Lord Voldemort | Death Eaters | Spying for Lord Voldemort | pre 1964 | ||
| 134 | Aurora Sinistra | Female | Astronomer at Hogwarts | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Hogwarts School of Witchcraft and Wizardry | Pre 1968 | |||
| 73 | Barty Crouch Jr. | Male | Professor of Defence Against the Dark Arts (as Alastor Moody) | Unknown | Unknown | Human | Pure-blood or half-blood | Straw blond | Pale, freckled | Lord Voldemort | Death Eaters | Skilled potioneer | 1962 | 1995-1996 | |
| 101 | Barty Crouch Sr. | Male | Head of the Department of International Magical Cooperation | Unknown | Non-corporeal | Human | Pure-blood | Grey | Minister of Magic | Multilingual, able to fight the Imperius curse | Pre 1940 | 27 May, 1995 | ||
| 50 | Bellatrix Lestrange | Female | Slytherin | 12¾" Walnut dragon heartstring | Human | Pure-blood | Black | Lord Voldemort | Death Eaters | She is a duellist of great skill and an experienced Occlumens | 1951 | 2 May, 1998 | |||
| 116 | Benjy Fenwick | Male | Unknown | Unknown | Human | Black | Black | Original Order of the Phoenix | 1981 | |||||
| 57 | Blaise Zabini | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Chaser | 1 September, 1979 – 21 April, 1980 | ||
| 63 | Bloody Baron | Male | Slytherin House Ghost | Slytherin | Unknown | Unknown | Ghost | Pure-blood or half-blood | Controlling Peeves | Post 982 | 11th century | |||
| 84 | Cedric Diggory | Male | Student | Hufflepuff | 12¼", Ash, unicorn hair | Unknown | Human | Pure-blood | Dark | Grey | Skilled Seeker | 1 September - 30 October 1977 | 24 June, 1995 | |
| 74 | Charity Burbage | Female | Professor of Muggle Studies | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Blonde | Teaching and studying the Muggle world | Before 1976 | Late July, 1997 | |||
| 19 | Charles Weasley | Male | Dragonologist | Gryffindor | 12" Ash unicorn tail hair | Unknown | Human | Pure-blood | Red | Grey | Order of the Phoenix | Gringotts Wizarding Bank | Highly skilled dragon trainer| one-time Gryffindor Seeker | 12 December, 1972 | |
| 34 | Cho Chang | Female | Student | Ravenclaw | Unknown | Swan | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Seeker | 1 September 1978-31 August 1979 | |
| 28 | Colin Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Photography | 3 May - 31 August 1981 | 2 May, 1998 | |
| 93 | Corban Yaxley | Male | Head of the Department of Magical Law Enforcement | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Blonde | Blue | Lord Voldemort | Death Eaters | Imperius curse, undercover work | Pre 1970s | |
| 29 | Cormac McLaggen | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Blond | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Quidditch Keeper | 1 September 1978- 31 August 1979 | ||
| 100 | Cornelius Oswald Fudge | Male | Minister for Magic | Unknown | Non-corporeal | Human | Pure-blood or Half-blood | Grey | Minister of Magic | Turning a blind eye to the continuing threat of Dark Magic in the name of keeping up morale | Pre 1964 | |||
| 72 | Cuthbert Binns | Male | Professor of History of Magic | Unknown | Unknown | Ghost | White (balding) | Black | Boring a class with facts that might be interesting if anyone else was giving the lesson | Pre 1970s | ||||
| 10 | Dean Thomas | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Black | Brown | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1979- 31 August 1980 | |
| 103 | Dedalus Diggle | Male | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Order of the Phoenix | An enthusiastic volunteer for the Order and a helpful escort for Harry and his relatives | Pre 1964 | |||||
| 124 | Dennis Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy brown | Dumbledore's Army | 1 September 1982 - 31 August 1983 | |||
| 139 | Dobby | Male | Malfoy family's house-elf (? - 1993), Hogwarts kitchens worker (December 1994 - 1998) | | | | | | | |House elf | | | |Green | | | | | |A type of magic specific to house-elves, performed without a wand which includes the ability to apparate, disarm and make objects levitate | |28 June | |Late March, 1998 |
| 51 | Dolores Jane Umbridge | Female | Professor of Defence Against the Dark Arts | Department of Magical Law Enforcement | Slytherin | 8" Birch dragon heartstring | Cat | Human | Half-blood | Iron grey | Ministry of Magic | Her punishment quill is of her own invention | 26 August | ||
| 115 | Dorcas Meadowes | Female | Unknown | Unknown | Human | Black | Brown | Original Order of the Phoenix | 1981 | |||||
| 47 | Draco Malfoy | Male | Student | Slytherin | 10" Hawthorn unicorn hair | Unknown | Human | Pure-blood | White-blond | Grey | Prefect, Seeker | 5 June, 1980 | ||
| 122 | Dudley Dursley | Male | Human | Muggle | Blond | Blue | 23 June 1980 | |||||||
| 114 | Edgar Bones | Male | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-brown | Grey | Original Order of the Phoenix | Said to be a great wizard | 1981 | ||
| 127 | Edward Remus Lupin | Male | Student | Hufflepuff | Unknown | Unknown | Human (Metamorphmagus) | Half-blood | Variable | Variable | April, 1998 | |||
| 104 | Elphias Doge | Male | Special Advisor to the Wizengamot | Unknown | Non-corporeal | Human | Pure-blood | Silver | Grey/Blue[ | Order of the Phoenix | Writing | 1 September 1880 - 31 August 1881 | ||
| 113 | Emmeline Vance | Female | Advance Guard | Unknown | Unknown | Human | Order of the Phoenix | pre 1964 | Early July, 1996 | |||||
| 88 | Ernest Macmillan | Male | Student | Hufflepuff | Unknown | Boar | Human | Pure-blood | Blond | Dumbledore's Army | Revising, being a Prefect, getting the wrong end of the stick | 21 April 1980 - 31 August 1980 | ||
| 111 | Fabian Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Grey | Original Order of the Phoenix | Duelling | 1981 | |||
| 79 | Fat Friar | Male | Hufflepuff House Ghost | Hufflepuff | Unknown | Unknown | Ghost | Brown | Curing peasants of the pox | 10th century | Pre 1988 | |||
| 137 | Fenrir Greyback | Male | Unknown | None | Werewolf | Grey | Lord Voldemort | Death Eaters | Physical combat | Pre 1945 | |||||
| 37 | Filius Flitwick | Male | Professor of Charms | Head of Ravenclaw | Ravenclaw | Unknown | Non-corporeal | Human(goblin ancestry) | Part-Goblin | White | Charms | 17 October 1958 or earlier | |||
| 75 | Firenze | Male | Professor of Divination | Centaur | White-blond | Astonishingly blue | ||||||||
| 105 | Fleur Isabelle Delacour | Female | Part-time at Gringotts Wizarding Bank | Beauxbatons Academy of Magic | 9½", Rosewood, veela hair | Non-corporeal | Human | Quarter-Veela | Silvery-blonde | Dark blue[ | Order of the Phoenix | part Veela, and therefore possesses some of their magical powers. She was also selected to compete in the Triwizard Tournament | Pre 30 October, 1977 | |
| 98 | Frank Longbottom | Male | Auror | Gryffindor | Inherited by his son, Neville. It was broken in battle at the Department of Mysteries. | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | 1 September 1957 - 31 August 1959 or earlier | ||
| 7 | Fred Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | 2 May, 1998 |
| 118 | Gabrielle Delacour | Female | Beauxbatons Academy of Magic | Unknown | Unknown | Human | Quarter-Veela | Silvery-blonde | part Veela and therefore may possess some of their magical powers | 31 July 1985 - 30 July 1986 | ||||
| 39 | Garrick Ollivander | Male | Wandmaker | Ravenclaw | 12¾" Hornbeam dragon heartstring | Non-corporeal | Human | Half-blood | Silvery | An incomparable understanding of wandcraft | 25 September, pre 1908 | |||
| 138 | Gellert Grindelwald | Male | Revolutionary leader(c. 1920s[6] – 1945) | 15", Elder, Thestral tail hair core | Human | Pure-blood or half-blood | Blond | Blue | Gellert Grindelwald's Acolytes | Duelling | 1883 | March, 1998 | ||
| 8 | George Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | |
| 112 | Gideon Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Dark Grey | Original Order of the Phoenix | Duelling | 1981 | |||
| 36 | Gilderoy Lockhart | Male | Defence Against the Dark Arts(1992-1993) | Ravenclaw | 9" Cherry dragon heartstring | Non-corporeal | Human | Half-blood | Blond | Blue | 26 January 1964 | |||
| 9 | Ginevra (Ginny) Molly Weasley | Female | Student | Gryffindor | Unknown | Horse | Human | Pure-blood | Red | Bright brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Chaser| Bat-Bogey hex | 11 August, 1981 | |
| 69 | Godric Gryffindor | Male | Founder of Gryffindor | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Red | Green | The most accomplished duellist of his time | Pre 976 | 11th century | |
| 62 | Graham Montague | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Quidditch captain, Chaser | In or prior to c.1981 | ||
| 49 | Gregory Goyle | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | Beater | 1 September 1979-31 August 1980 | |||
| 87 | Hannah Abbott | Female | Student | Hufflepuff | Unknown | Non-corporeal | Human | Half-blood | Blonde | Brown | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | |
| 1 | Harry James Potter | Male | Student | Gryffindor | 11" Holly phoenix feather | Stag | Human | Half-blood | Black | Bright green | Albus Dumbledore | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Parseltongue| Defence Against the Dark Arts | Seeker | 31 July 1980 | |
| 80 | Helena Ravenclaw | Female | Ravenclaw House Ghost | Ravenclaw | Unknown | Unknown | Ghost | Pure-blood or half-blood | Black | Grey | Post 982 | 996-1000 | ||
| 78 | Helga Hufflepuff | Female | Founder of Hufflepuff | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Blue | Food-related Charms. Many traditional Hogwarts recipes originated with her | Pre 976 | 11th century | |
| 3 | Hermione Jean Granger | Female | Student | Gryffindor | 10¾" vine wood dragon heartstring | Otter | Human | Muggle-born | Brown | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Almost everything | 19 September, 1979 | |
| 109 | Hestia Jones | Female | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Order of the Phoenix | Carrying out escort missions for the Order | Pre 1978 | |||
| 52 | Horace Eugene Flaccus Slughorn | Professor of Potions | Slytherin | 10¼" Cedar dragon heartstring fairly flexible | Non-corporeal | Human | Pure-blood or half-blood | Bald | Gooseberry | Accomplished Occlumens, expert Potioneer, advanced self-transfiguration | 28 April | |||
| 94 | Igor Karkaroff | Male | Headmaster of Durmstrang Institute | Unknown | None | Human | Pure-blood or Half-blood | Silver| formerly black | Skilled in the Dark Arts | pre 1965 | 24 June, 1995 – 31 July, 1996 | |||
| 133 | Irma Pince | Female | Librarian at Hogwarts | Unknown | Non-corporeal | Human | Hogwarts School of Witchcraft and Wizardry | Pre 1966 | ||||||
| 13 | James Potter | Male | Gryffindor | 11" Mahogany unknown core | Stag | Human | Pure-blood | Black | Hazel | Order of the Phoenix | Animagus| Seeker | 27 March, 1960 | 31 October, 1981 | |
| 128 | James Sirius Potter | Male | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | 1 September 2003-31 August 2004 | |||||
| 85 | Justin Finch-Fletchley | Male | Student | Hufflepuff | Unknown | Non-corporeal | Human | Muggle-born | Red | Dumbledore's Army | 1 September 1979- 31 August 1980 | |||
| 23 | Katie Bell | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1978- 31 August 1979 | |
| 95 | Kingsley Shacklebolt | Male | Auror | Minister for Magic | Unknown | Lynx | Human | Pure-blood | Bald | Black | Order of the Phoenix | Exceptionally skilled duellist and Auror | Pre 1973 | ||
| 140 | Kreacher | Male | Black family's house-elf (?-1996), Harry Potter's house-elf, Hogwarts kitchen worker | | | | | | | |House elf | | | |White | | | | | |Magic performed without a wand which includes the ability to apparate, disarm and make objects levitate | | | | |
| 25 | Lavender Brown | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Blond | Blue | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 31 August 1980 | 2 May, 1998 |
| 20 | Lee Jordan | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Quidditch commentary | broadcasting | 1 September 1977- 31 August 1978 | |
| 12 | Lily J. Potter | Female | Gryffindor | 10¼" Willow unknown core | Doe | Human | Muggle-born | Auburn | Bright green | Order of the Phoenix | 30 January, 1960 | 31 October, 1981 | ||
| 53 | Lucius Malfoy | Male | School Governor | Slytherin | Elm and dragon heartstring | Unknown | Human | Pure-blood | White-blond | Grey | Lord Voldemort | Death Eaters | Skilled duellist and potioneer | c. 1954 | |
| 35 | Luna Lovegood | Female | Student | Ravenclaw | Unknown | Hare | Human | Pure-blood or half-blood | Dirty-blonde | Pale silvery | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spotting Nargles | 13 February, 1981 | |
| 117 | Madame Olympe Maxime | Female | Headmistress of Beauxbatons Academy of Magic | Beauxbatons Academy of Magic | Unknown | Unknown | Half-Human/Half-Giant | Part-Human (Half-giant) | Brown | Black | An ‘excellent dancer’, in the words of Dumbledore himself | |||
| 67 | Marcus Belby | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Dark | 1 September 1978 - 31 August 1979 | |||
| 64 | Marcus Flint | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Chaser, Captain | 1 September 1975- 31 August 1976 | |||
| 123 | Marge Dursley | Female | Dog breeder | Human | Muggle | Grey | Breeding bulldogs | Pre 1954 | ||||||
| 43 | Marietta Edgecombe | Female | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-blonde | Grey | Covering up the spots that blight her face after betraying Dumbledore's Army | 1978-1979 | ||
| 110 | Marlene McKinnon | Female | Unknown | Unknown | Human | Red | Brown | Original Order of the Phoenix | July, 1981 | |||||
| 42 | Michael Corner | Male | Student | Ravenclaw | Unknown | Squirrel | Human | Half-blood | Black | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions | 1 September 1979 - 31 August 1980 | |
| 61 | Millicent Bulstrode | Female | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Black | 1 September 1979- 31 August 1980 | ||||
| 30 | Minerva McGonagall | Female | Professor of Transfiguration | Head of Gryffindor | Gryffindor | 9½" Fir dragon heartstring | Cat | Human | Half-blood | Black | Green | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Animagus | 4 October | |
| 31 | Molly Weasley | Female | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Bright brown | Order of the Phoenix | Household spells| healing magic | 30 October, 1949 | ||
| 107 | Mundungus Fletcher | Male | Dealer of wizarding artifacts | Unknown | Non-corporeal | Human | Half-blood[ | Ginger | Brown | Order of the Phoenix | Gathering information for the Order, dealing in stolen cauldrons, 'acquiring' the odd Muggle car | Before 1962 | ||
| 40 | Myrtle Elizabeth Warren (Moaning Myrtle) | Female | Student | Ravenclaw | Unknown | Unknown | Ghost | Muggle-born | 14 June 1928 -13 June 1929 | 13 June, 1943 | ||||
| 54 | Narcissa Malfoy | Female | Slytherin | Unknown | Unknown | Human | Pure-blood | Blonde | Blue | Lord Voldemort | Death Eaters | 1955 | |||
| 6 | Neville Longbottom | Male | Student | Gryffindor | 13" Cherry unicorn hair | Non-corporeal | Human | Pure-blood | Blond | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Herbology | 30 July, 1980 | ||
| 83 | Newton Scamander | Male | Employee in the Beast Division of the Department for the Regulation and Control of Magical Creatures | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Red brown | Blue | Magizoology, Order of Merlin, Second Class | 24 February 1897 | ||
| 71 | Nicholas de Mimsy-Porpington | Male | Gryffindor House Ghost | Gryffindor | Unknown | Unknown | Ghost | Grey | 1401 -1475 | 31 October, 1492 | ||||
| 81 | Nymphadora Tonks | Female | Auror | Hufflepuff | Unknown | Jack rabbit, Wolf | Human | Half-blood | Variable | Variable | Ministry of Magic | Order of the Phoenix | Talented Auror, Metamorphmagus | 1 September 1972- 31 August 1973 | 2 May, 1998 |
| 21 | Oliver Wood | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or Half-blood | Hogwarts School of Witchcraft and Wizardry | Keeper| Captain of the Gryffindor Quidditch team | October 1975 - 31 August 1976 | |||
| 41 | Padma Patil | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979 - 21 April 1980 | |
| 56 | Pansy Parkinson | Female | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Prefect | 1 September 1979- 31 August 1980 | ||||
| 26 | Parvati Patil | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 21 April 1980 | |
| 65 | Penelope Clearwater | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Muggle-born or half-blood[ | Blonde | Prefect | 1 September 1975- 31 August 1976 | |||
| 17 | Percy Ignatius Weasley | Male | Student|Prefect| Personal assistant to Barty Crouch Snr | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Blue | Order of the Phoenix| Hogwarts School of Witchcraft and Wizardry |British Ministry of Magic | Intelligent| hard-working| a model student | 22 August, 1976 | |
| 16 | Peter Pettigrew | Male | The Servant of Lord Voldemort | Gryffindor | 9¼" Chestnut dragon heartstring | None | Human | Half-blood or pure-blood | Colourless and balding | Blue | Lord Voldemort| Death Eaters | Animagus | 1 September 1959- 31 August 1960 | Late March 1998 |
| 120 | Petunia Dursley | Female | Human | Muggle | Blonde | Pre 1960 | ||||||||
| 82 | Pomona Sprout | Female | Professor of Herbology | Head of Hufflepuff House | Hufflepuff | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Grey | Herbology | 15 May | |||
| 131 | Poppy Pomfrey | Female | Matron at Hogwarts School | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Hogwarts School of Witchcraft and Wizardry | Skilled medical healer | pre 1954 | ||||
| 33 | Quirinus Quirrell | Male | Defence Against the Dark Arts(1991-1992) | Ravenclaw | 9" Alder unicorn hair bendy | Non-corporeal | Human | Half-blood | Lord Voldemort | Learned in the theory of Defensive Magic| less adept in the practise | 26 September,1970 or earlier | 4 June 1992 | ||
| 55 | Regulus Arcturus Black | Male | Slytherin | Unknown | Non-corporeal | Human | Pure-blood | Black | Seeker | 1961 | 1979 | |||
| 15 | Remus John Lupin | Male | Professor of Defence Against the Dark Arts | Gryffindor | 10¼" Cypress unicorn hair | Wolf | Werewolf | Half-blood | Light brown flecked with grey | Green | Order of the Phoenix | Exceptionally gifted in Defence Against the Dark Arts | 10 March, 1960 | 2 May, 1998 |
| 60 | Rodolphus Lestrange | Male | Slytherin | Unknown | Unknown | Human | Pure-blood | Dark | Dark | Lord Voldemort | Death Eaters | Pre 1964 | |||
| 66 | Roger Davies | Male | Student | Ravenclaw | Unknown | Unknown | Human | Dark | Dark | Quidditch Captain, Chaser | 1 September 1977- 31 August 1978 | |||
| 132 | Rolanda Hooch | Female | Flying Instructor at Hogwarts | Unknown | Non-corporeal | Human | Grey | Yellow | Hogwarts School of Witchcraft and Wizardry | Teaching, flying, refereeing Quidditch matches | pre 1918 | |||
| 27 | Romilda Vane | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spiking Chocolate Cauldrons with love potion | 1 September 1981- 31 August 1982 | |
| 2 | Ronald Bilius Weasley | Male | Student | Gryffindor | 12" Ash unicorn tail hair | Jack Russell terrier | Human | Pure-blood | Red | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Wizard chess | Quidditch goalkeeping | 1 March 1980 | |
| 129 | Rose Granger-Weasley | Female | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | Red | Chaser | 1 September 2005-31 August 2006 | |||
| 70 | Rowena Ravenclaw | Female | Founder of Ravenclaw | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Extremely skilled witch, known for her intelligence and wisdom | Pre 976 | 11th century | |
| 5 | Rubeus Hagrid | Male | Keeper of Keys and Grounds | Professor of Care of Magical Creatures | Gryffindor | 16" Oak unknown core | None | Half-Human/Half-Giant | Part-Human (Half-giant) | Black | Black | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Resistant to stunning spells| above average strength | crossbowmanship | 6 December 1928 | |
| 99 | Rufus Scrimgeour | Male | Head of Auror Office| Minister for Magic | Unknown | Non-corporeal | Human | Tawny | Yellowish | Minister of Magic | Highly regarded as a skilled Auror | Pre 1968 | 1 August, 1997 | ||
| 68 | Salazar Slytherin | Male | Founder of Slytherin | Slytherin | snakewood, Basilisk horn | Unknown | Human | Pure-blood | Grey | Dark | Accomplished Legilimens and one of the first recorded Parselmouths | Pre 976 | 11th century | |
| 126 | Scorpius Hyperion Malfoy | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | White blond | Grey | Between 1 September 2005-31 August 2007 | |||
| 11 | Seamus Finnigan | Male | Student | Gryffindor | Unknown | Fox | Human | Half-blood | Sandy | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Pyrotechnics | 1 September 1979- 31 August 1981 | ||
| 135 | Septima Vector | Female | Professor of Arithmancyat Hogwarts | Unknown | Unknown | Human | Black | Hogwarts School of Witchcraft and Wizardry | Before 1974 | |||||
| 46 | Severus Snape | Male | Professor of Potions | Head of Slytherin | Slytherin | Unknown | Doe | Human | Half-blood | Black | Black | Extremely skilled at potions and Occlumency | 9 January 1960 | 2 May, 1998 | |
| 14 | Sirius Black | Male | Gryffindor | Unknown | Unknown | Human | Pure-blood | Black | Grey | Order of the Phoenix | Animagus| nonverbal magic| Charms | 3 November, 1959 | 18 June, 1996 | |
| 108 | Sturgis Podmore | Male | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Straw-coloured | Brown | Order of the Phoenix | Carrying out guard duty for the Order | 8 September 1956 - 7 September 1957 | ||
| 89 | Susan Bones | Female | Student | Hufflepuff | Unknown | Unknown | Human | Half-blood | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | |||
| 38 | Sybill Patricia Trelawney | Female | Professor of Divination | Ravenclaw | 9 ½” hazel unicorn hair core | Non-corporeal | Human | Half-blood | A Seer, though the gift is unpredictable and unconscious | 9 March prior to 1962 | ||||
| 44 | Terry Boot | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions, also knowledgable about Charms | 1 September 1979- 21 April 1980 | |||
| 59 | Theodore Nott | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | 1 September, 1979 – 21 April, 1980 | ||||
| 58 | Tom Marvolo Riddle | Male | Student | Slytherin | 13½" Yew phoenix feather core | Unknown | Human | Half-blood | Bald | Scarlet | Dark Lord, Outstanding manipulation, Parseltongue, Heir of Slytherin, Dark magic, Inferi creation and control | 31 December 1926 | 2 May, 1998 | |
| 121 | Vernon Dursley | Male | Director at Grunnings | Human | Muggle | Black | Schmoozing clients, pretending magic doesn't exist | Pre 1954 | ||||||
| 119 | Viktor Krum | Male | Seeker for the Bulgarian National Quidditch team | Durmstrang Institute | 10¼", Hornbeam, dragon heartstring | Unknown | Human | Pure-blood or half-blood | Dark | Dark | One of the best Seekers in the world | April-August, 1976 | ||
| 48 | Vincent Crabbe | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Black | Black | Beater | c. 1979-1980 | 2 May, 1998 | |
| 90 | Walden Macnair | Male | Executioner for the Committee for the Disposal of Dangerous Creatures | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Lord Voldemort | Death Eaters | Liaising with giants | In or before 1970s | ||
| 136 | Wilhelmina Grubbly-Plank | Female | Substitute professor of Care of Magical Creatures at Hogwarts | Unknown | Non-corporeal | Human | Grey | Hogwarts School of Witchcraft and Wizardry | ||||||
| 86 | Zacharias Smith | Male | Student | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Blonde | Dumbledore's Army | Chaser | 1 September 1979 - 2 May 1981 |
# Ordena las filas por orden alfabetico de acuerdo al nombre de los personajes Z a la A
hp_data |> arrange(desc(Name)) | Id | Name | Gender | Job | House | Wand | Patronus | Species | Blood.status | Hair.colour | Eye.colour | Loyalty | Skills | Birth | Death |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 86 | Zacharias Smith | Male | Student | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Blonde | Dumbledore's Army | Chaser | 1 September 1979 - 2 May 1981 | ||
| 136 | Wilhelmina Grubbly-Plank | Female | Substitute professor of Care of Magical Creatures at Hogwarts | Unknown | Non-corporeal | Human | Grey | Hogwarts School of Witchcraft and Wizardry | ||||||
| 90 | Walden Macnair | Male | Executioner for the Committee for the Disposal of Dangerous Creatures | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Lord Voldemort | Death Eaters | Liaising with giants | In or before 1970s | ||
| 48 | Vincent Crabbe | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Black | Black | Beater | c. 1979-1980 | 2 May, 1998 | |
| 119 | Viktor Krum | Male | Seeker for the Bulgarian National Quidditch team | Durmstrang Institute | 10¼", Hornbeam, dragon heartstring | Unknown | Human | Pure-blood or half-blood | Dark | Dark | One of the best Seekers in the world | April-August, 1976 | ||
| 121 | Vernon Dursley | Male | Director at Grunnings | Human | Muggle | Black | Schmoozing clients, pretending magic doesn't exist | Pre 1954 | ||||||
| 58 | Tom Marvolo Riddle | Male | Student | Slytherin | 13½" Yew phoenix feather core | Unknown | Human | Half-blood | Bald | Scarlet | Dark Lord, Outstanding manipulation, Parseltongue, Heir of Slytherin, Dark magic, Inferi creation and control | 31 December 1926 | 2 May, 1998 | |
| 59 | Theodore Nott | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | 1 September, 1979 – 21 April, 1980 | ||||
| 44 | Terry Boot | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions, also knowledgable about Charms | 1 September 1979- 21 April 1980 | |||
| 38 | Sybill Patricia Trelawney | Female | Professor of Divination | Ravenclaw | 9 ½” hazel unicorn hair core | Non-corporeal | Human | Half-blood | A Seer, though the gift is unpredictable and unconscious | 9 March prior to 1962 | ||||
| 89 | Susan Bones | Female | Student | Hufflepuff | Unknown | Unknown | Human | Half-blood | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | |||
| 108 | Sturgis Podmore | Male | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Straw-coloured | Brown | Order of the Phoenix | Carrying out guard duty for the Order | 8 September 1956 - 7 September 1957 | ||
| 14 | Sirius Black | Male | Gryffindor | Unknown | Unknown | Human | Pure-blood | Black | Grey | Order of the Phoenix | Animagus| nonverbal magic| Charms | 3 November, 1959 | 18 June, 1996 | |
| 46 | Severus Snape | Male | Professor of Potions | Head of Slytherin | Slytherin | Unknown | Doe | Human | Half-blood | Black | Black | Extremely skilled at potions and Occlumency | 9 January 1960 | 2 May, 1998 | |
| 135 | Septima Vector | Female | Professor of Arithmancyat Hogwarts | Unknown | Unknown | Human | Black | Hogwarts School of Witchcraft and Wizardry | Before 1974 | |||||
| 11 | Seamus Finnigan | Male | Student | Gryffindor | Unknown | Fox | Human | Half-blood | Sandy | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Pyrotechnics | 1 September 1979- 31 August 1981 | ||
| 126 | Scorpius Hyperion Malfoy | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | White blond | Grey | Between 1 September 2005-31 August 2007 | |||
| 68 | Salazar Slytherin | Male | Founder of Slytherin | Slytherin | snakewood, Basilisk horn | Unknown | Human | Pure-blood | Grey | Dark | Accomplished Legilimens and one of the first recorded Parselmouths | Pre 976 | 11th century | |
| 99 | Rufus Scrimgeour | Male | Head of Auror Office| Minister for Magic | Unknown | Non-corporeal | Human | Tawny | Yellowish | Minister of Magic | Highly regarded as a skilled Auror | Pre 1968 | 1 August, 1997 | ||
| 5 | Rubeus Hagrid | Male | Keeper of Keys and Grounds | Professor of Care of Magical Creatures | Gryffindor | 16" Oak unknown core | None | Half-Human/Half-Giant | Part-Human (Half-giant) | Black | Black | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Resistant to stunning spells| above average strength | crossbowmanship | 6 December 1928 | |
| 70 | Rowena Ravenclaw | Female | Founder of Ravenclaw | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Extremely skilled witch, known for her intelligence and wisdom | Pre 976 | 11th century | |
| 129 | Rose Granger-Weasley | Female | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | Red | Chaser | 1 September 2005-31 August 2006 | |||
| 2 | Ronald Bilius Weasley | Male | Student | Gryffindor | 12" Ash unicorn tail hair | Jack Russell terrier | Human | Pure-blood | Red | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Wizard chess | Quidditch goalkeeping | 1 March 1980 | |
| 27 | Romilda Vane | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spiking Chocolate Cauldrons with love potion | 1 September 1981- 31 August 1982 | |
| 132 | Rolanda Hooch | Female | Flying Instructor at Hogwarts | Unknown | Non-corporeal | Human | Grey | Yellow | Hogwarts School of Witchcraft and Wizardry | Teaching, flying, refereeing Quidditch matches | pre 1918 | |||
| 66 | Roger Davies | Male | Student | Ravenclaw | Unknown | Unknown | Human | Dark | Dark | Quidditch Captain, Chaser | 1 September 1977- 31 August 1978 | |||
| 60 | Rodolphus Lestrange | Male | Slytherin | Unknown | Unknown | Human | Pure-blood | Dark | Dark | Lord Voldemort | Death Eaters | Pre 1964 | |||
| 15 | Remus John Lupin | Male | Professor of Defence Against the Dark Arts | Gryffindor | 10¼" Cypress unicorn hair | Wolf | Werewolf | Half-blood | Light brown flecked with grey | Green | Order of the Phoenix | Exceptionally gifted in Defence Against the Dark Arts | 10 March, 1960 | 2 May, 1998 |
| 55 | Regulus Arcturus Black | Male | Slytherin | Unknown | Non-corporeal | Human | Pure-blood | Black | Seeker | 1961 | 1979 | |||
| 33 | Quirinus Quirrell | Male | Defence Against the Dark Arts(1991-1992) | Ravenclaw | 9" Alder unicorn hair bendy | Non-corporeal | Human | Half-blood | Lord Voldemort | Learned in the theory of Defensive Magic| less adept in the practise | 26 September,1970 or earlier | 4 June 1992 | ||
| 131 | Poppy Pomfrey | Female | Matron at Hogwarts School | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Hogwarts School of Witchcraft and Wizardry | Skilled medical healer | pre 1954 | ||||
| 82 | Pomona Sprout | Female | Professor of Herbology | Head of Hufflepuff House | Hufflepuff | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Grey | Herbology | 15 May | |||
| 120 | Petunia Dursley | Female | Human | Muggle | Blonde | Pre 1960 | ||||||||
| 16 | Peter Pettigrew | Male | The Servant of Lord Voldemort | Gryffindor | 9¼" Chestnut dragon heartstring | None | Human | Half-blood or pure-blood | Colourless and balding | Blue | Lord Voldemort| Death Eaters | Animagus | 1 September 1959- 31 August 1960 | Late March 1998 |
| 17 | Percy Ignatius Weasley | Male | Student|Prefect| Personal assistant to Barty Crouch Snr | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Blue | Order of the Phoenix| Hogwarts School of Witchcraft and Wizardry |British Ministry of Magic | Intelligent| hard-working| a model student | 22 August, 1976 | |
| 65 | Penelope Clearwater | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Muggle-born or half-blood[ | Blonde | Prefect | 1 September 1975- 31 August 1976 | |||
| 26 | Parvati Patil | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 21 April 1980 | |
| 56 | Pansy Parkinson | Female | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Prefect | 1 September 1979- 31 August 1980 | ||||
| 41 | Padma Patil | Female | Student | Ravenclaw | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Dark | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979 - 21 April 1980 | |
| 21 | Oliver Wood | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or Half-blood | Hogwarts School of Witchcraft and Wizardry | Keeper| Captain of the Gryffindor Quidditch team | October 1975 - 31 August 1976 | |||
| 81 | Nymphadora Tonks | Female | Auror | Hufflepuff | Unknown | Jack rabbit, Wolf | Human | Half-blood | Variable | Variable | Ministry of Magic | Order of the Phoenix | Talented Auror, Metamorphmagus | 1 September 1972- 31 August 1973 | 2 May, 1998 |
| 71 | Nicholas de Mimsy-Porpington | Male | Gryffindor House Ghost | Gryffindor | Unknown | Unknown | Ghost | Grey | 1401 -1475 | 31 October, 1492 | ||||
| 83 | Newton Scamander | Male | Employee in the Beast Division of the Department for the Regulation and Control of Magical Creatures | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Red brown | Blue | Magizoology, Order of Merlin, Second Class | 24 February 1897 | ||
| 6 | Neville Longbottom | Male | Student | Gryffindor | 13" Cherry unicorn hair | Non-corporeal | Human | Pure-blood | Blond | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Herbology | 30 July, 1980 | ||
| 54 | Narcissa Malfoy | Female | Slytherin | Unknown | Unknown | Human | Pure-blood | Blonde | Blue | Lord Voldemort | Death Eaters | 1955 | |||
| 40 | Myrtle Elizabeth Warren (Moaning Myrtle) | Female | Student | Ravenclaw | Unknown | Unknown | Ghost | Muggle-born | 14 June 1928 -13 June 1929 | 13 June, 1943 | ||||
| 107 | Mundungus Fletcher | Male | Dealer of wizarding artifacts | Unknown | Non-corporeal | Human | Half-blood[ | Ginger | Brown | Order of the Phoenix | Gathering information for the Order, dealing in stolen cauldrons, 'acquiring' the odd Muggle car | Before 1962 | ||
| 31 | Molly Weasley | Female | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Bright brown | Order of the Phoenix | Household spells| healing magic | 30 October, 1949 | ||
| 30 | Minerva McGonagall | Female | Professor of Transfiguration | Head of Gryffindor | Gryffindor | 9½" Fir dragon heartstring | Cat | Human | Half-blood | Black | Green | Albus Dumbledore | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Animagus | 4 October | |
| 61 | Millicent Bulstrode | Female | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Black | 1 September 1979- 31 August 1980 | ||||
| 42 | Michael Corner | Male | Student | Ravenclaw | Unknown | Squirrel | Human | Half-blood | Black | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Potions | 1 September 1979 - 31 August 1980 | |
| 110 | Marlene McKinnon | Female | Unknown | Unknown | Human | Red | Brown | Original Order of the Phoenix | July, 1981 | |||||
| 43 | Marietta Edgecombe | Female | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-blonde | Grey | Covering up the spots that blight her face after betraying Dumbledore's Army | 1978-1979 | ||
| 123 | Marge Dursley | Female | Dog breeder | Human | Muggle | Grey | Breeding bulldogs | Pre 1954 | ||||||
| 64 | Marcus Flint | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Chaser, Captain | 1 September 1975- 31 August 1976 | |||
| 67 | Marcus Belby | Male | Student | Ravenclaw | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Dark | 1 September 1978 - 31 August 1979 | |||
| 117 | Madame Olympe Maxime | Female | Headmistress of Beauxbatons Academy of Magic | Beauxbatons Academy of Magic | Unknown | Unknown | Half-Human/Half-Giant | Part-Human (Half-giant) | Brown | Black | An ‘excellent dancer’, in the words of Dumbledore himself | |||
| 35 | Luna Lovegood | Female | Student | Ravenclaw | Unknown | Hare | Human | Pure-blood or half-blood | Dirty-blonde | Pale silvery | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Spotting Nargles | 13 February, 1981 | |
| 53 | Lucius Malfoy | Male | School Governor | Slytherin | Elm and dragon heartstring | Unknown | Human | Pure-blood | White-blond | Grey | Lord Voldemort | Death Eaters | Skilled duellist and potioneer | c. 1954 | |
| 12 | Lily J. Potter | Female | Gryffindor | 10¼" Willow unknown core | Doe | Human | Muggle-born | Auburn | Bright green | Order of the Phoenix | 30 January, 1960 | 31 October, 1981 | ||
| 20 | Lee Jordan | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Quidditch commentary | broadcasting | 1 September 1977- 31 August 1978 | |
| 25 | Lavender Brown | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Blond | Blue | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Divination | 1 September 1979- 31 August 1980 | 2 May, 1998 |
| 140 | Kreacher | Male | Black family's house-elf (?-1996), Harry Potter's house-elf, Hogwarts kitchen worker | | | | | | | |House elf | | | |White | | | | | |Magic performed without a wand which includes the ability to apparate, disarm and make objects levitate | | | | |
| 95 | Kingsley Shacklebolt | Male | Auror | Minister for Magic | Unknown | Lynx | Human | Pure-blood | Bald | Black | Order of the Phoenix | Exceptionally skilled duellist and Auror | Pre 1973 | ||
| 23 | Katie Bell | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1978- 31 August 1979 | |
| 85 | Justin Finch-Fletchley | Male | Student | Hufflepuff | Unknown | Non-corporeal | Human | Muggle-born | Red | Dumbledore's Army | 1 September 1979- 31 August 1980 | |||
| 128 | James Sirius Potter | Male | Student | Gryffindor | Unknown | Unknown | Human | Half-blood | 1 September 2003-31 August 2004 | |||||
| 13 | James Potter | Male | Gryffindor | 11" Mahogany unknown core | Stag | Human | Pure-blood | Black | Hazel | Order of the Phoenix | Animagus| Seeker | 27 March, 1960 | 31 October, 1981 | |
| 133 | Irma Pince | Female | Librarian at Hogwarts | Unknown | Non-corporeal | Human | Hogwarts School of Witchcraft and Wizardry | Pre 1966 | ||||||
| 94 | Igor Karkaroff | Male | Headmaster of Durmstrang Institute | Unknown | None | Human | Pure-blood or Half-blood | Silver| formerly black | Skilled in the Dark Arts | pre 1965 | 24 June, 1995 – 31 July, 1996 | |||
| 52 | Horace Eugene Flaccus Slughorn | Professor of Potions | Slytherin | 10¼" Cedar dragon heartstring fairly flexible | Non-corporeal | Human | Pure-blood or half-blood | Bald | Gooseberry | Accomplished Occlumens, expert Potioneer, advanced self-transfiguration | 28 April | |||
| 109 | Hestia Jones | Female | Advance Guard | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Order of the Phoenix | Carrying out escort missions for the Order | Pre 1978 | |||
| 3 | Hermione Jean Granger | Female | Student | Gryffindor | 10¾" vine wood dragon heartstring | Otter | Human | Muggle-born | Brown | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Almost everything | 19 September, 1979 | |
| 78 | Helga Hufflepuff | Female | Founder of Hufflepuff | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Blue | Food-related Charms. Many traditional Hogwarts recipes originated with her | Pre 976 | 11th century | |
| 80 | Helena Ravenclaw | Female | Ravenclaw House Ghost | Ravenclaw | Unknown | Unknown | Ghost | Pure-blood or half-blood | Black | Grey | Post 982 | 996-1000 | ||
| 1 | Harry James Potter | Male | Student | Gryffindor | 11" Holly phoenix feather | Stag | Human | Half-blood | Black | Bright green | Albus Dumbledore | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Parseltongue| Defence Against the Dark Arts | Seeker | 31 July 1980 | |
| 87 | Hannah Abbott | Female | Student | Hufflepuff | Unknown | Non-corporeal | Human | Half-blood | Blonde | Brown | Dumbledore's Army | Defensive spells, learned with Dumbledore's Army | 1 September 1979 - 31 August 1980 | |
| 49 | Gregory Goyle | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood | Brown | Beater | 1 September 1979-31 August 1980 | |||
| 62 | Graham Montague | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Quidditch captain, Chaser | In or prior to c.1981 | ||
| 69 | Godric Gryffindor | Male | Founder of Gryffindor | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Red | Green | The most accomplished duellist of his time | Pre 976 | 11th century | |
| 9 | Ginevra (Ginny) Molly Weasley | Female | Student | Gryffindor | Unknown | Horse | Human | Pure-blood | Red | Bright brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Chaser| Bat-Bogey hex | 11 August, 1981 | |
| 36 | Gilderoy Lockhart | Male | Defence Against the Dark Arts(1992-1993) | Ravenclaw | 9" Cherry dragon heartstring | Non-corporeal | Human | Half-blood | Blond | Blue | 26 January 1964 | |||
| 112 | Gideon Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Dark Grey | Original Order of the Phoenix | Duelling | 1981 | |||
| 8 | George Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | |
| 138 | Gellert Grindelwald | Male | Revolutionary leader(c. 1920s[6] – 1945) | 15", Elder, Thestral tail hair core | Human | Pure-blood or half-blood | Blond | Blue | Gellert Grindelwald's Acolytes | Duelling | 1883 | March, 1998 | ||
| 39 | Garrick Ollivander | Male | Wandmaker | Ravenclaw | 12¾" Hornbeam dragon heartstring | Non-corporeal | Human | Half-blood | Silvery | An incomparable understanding of wandcraft | 25 September, pre 1908 | |||
| 118 | Gabrielle Delacour | Female | Beauxbatons Academy of Magic | Unknown | Unknown | Human | Quarter-Veela | Silvery-blonde | part Veela and therefore may possess some of their magical powers | 31 July 1985 - 30 July 1986 | ||||
| 7 | Fred Weasley | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood | Red | Brown | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Beater | 1 April, 1978 | 2 May, 1998 |
| 98 | Frank Longbottom | Male | Auror | Gryffindor | Inherited by his son, Neville. It was broken in battle at the Department of Mysteries. | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | 1 September 1957 - 31 August 1959 or earlier | ||
| 105 | Fleur Isabelle Delacour | Female | Part-time at Gringotts Wizarding Bank | Beauxbatons Academy of Magic | 9½", Rosewood, veela hair | Non-corporeal | Human | Quarter-Veela | Silvery-blonde | Dark blue[ | Order of the Phoenix | part Veela, and therefore possesses some of their magical powers. She was also selected to compete in the Triwizard Tournament | Pre 30 October, 1977 | |
| 75 | Firenze | Male | Professor of Divination | Centaur | White-blond | Astonishingly blue | ||||||||
| 37 | Filius Flitwick | Male | Professor of Charms | Head of Ravenclaw | Ravenclaw | Unknown | Non-corporeal | Human(goblin ancestry) | Part-Goblin | White | Charms | 17 October 1958 or earlier | |||
| 137 | Fenrir Greyback | Male | Unknown | None | Werewolf | Grey | Lord Voldemort | Death Eaters | Physical combat | Pre 1945 | |||||
| 79 | Fat Friar | Male | Hufflepuff House Ghost | Hufflepuff | Unknown | Unknown | Ghost | Brown | Curing peasants of the pox | 10th century | Pre 1988 | |||
| 111 | Fabian Prewett | Male | Unknown | Unknown | Human | Pure-blood | Red | Grey | Original Order of the Phoenix | Duelling | 1981 | |||
| 88 | Ernest Macmillan | Male | Student | Hufflepuff | Unknown | Boar | Human | Pure-blood | Blond | Dumbledore's Army | Revising, being a Prefect, getting the wrong end of the stick | 21 April 1980 - 31 August 1980 | ||
| 113 | Emmeline Vance | Female | Advance Guard | Unknown | Unknown | Human | Order of the Phoenix | pre 1964 | Early July, 1996 | |||||
| 104 | Elphias Doge | Male | Special Advisor to the Wizengamot | Unknown | Non-corporeal | Human | Pure-blood | Silver | Grey/Blue[ | Order of the Phoenix | Writing | 1 September 1880 - 31 August 1881 | ||
| 127 | Edward Remus Lupin | Male | Student | Hufflepuff | Unknown | Unknown | Human (Metamorphmagus) | Half-blood | Variable | Variable | April, 1998 | |||
| 114 | Edgar Bones | Male | Hufflepuff | Unknown | Unknown | Human | Pure-blood or half-blood | Reddish-brown | Grey | Original Order of the Phoenix | Said to be a great wizard | 1981 | ||
| 122 | Dudley Dursley | Male | Human | Muggle | Blond | Blue | 23 June 1980 | |||||||
| 47 | Draco Malfoy | Male | Student | Slytherin | 10" Hawthorn unicorn hair | Unknown | Human | Pure-blood | White-blond | Grey | Prefect, Seeker | 5 June, 1980 | ||
| 115 | Dorcas Meadowes | Female | Unknown | Unknown | Human | Black | Brown | Original Order of the Phoenix | 1981 | |||||
| 51 | Dolores Jane Umbridge | Female | Professor of Defence Against the Dark Arts | Department of Magical Law Enforcement | Slytherin | 8" Birch dragon heartstring | Cat | Human | Half-blood | Iron grey | Ministry of Magic | Her punishment quill is of her own invention | 26 August | ||
| 139 | Dobby | Male | Malfoy family's house-elf (? - 1993), Hogwarts kitchens worker (December 1994 - 1998) | | | | | | | |House elf | | | |Green | | | | | |A type of magic specific to house-elves, performed without a wand which includes the ability to apparate, disarm and make objects levitate | |28 June | |Late March, 1998 |
| 124 | Dennis Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy brown | Dumbledore's Army | 1 September 1982 - 31 August 1983 | |||
| 103 | Dedalus Diggle | Male | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Order of the Phoenix | An enthusiastic volunteer for the Order and a helpful escort for Harry and his relatives | Pre 1964 | |||||
| 10 | Dean Thomas | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Black | Brown | Dumbledore's Army | Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1979- 31 August 1980 | |
| 72 | Cuthbert Binns | Male | Professor of History of Magic | Unknown | Unknown | Ghost | White (balding) | Black | Boring a class with facts that might be interesting if anyone else was giving the lesson | Pre 1970s | ||||
| 100 | Cornelius Oswald Fudge | Male | Minister for Magic | Unknown | Non-corporeal | Human | Pure-blood or Half-blood | Grey | Minister of Magic | Turning a blind eye to the continuing threat of Dark Magic in the name of keeping up morale | Pre 1964 | |||
| 29 | Cormac McLaggen | Male | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Blond | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Quidditch Keeper | 1 September 1978- 31 August 1979 | ||
| 93 | Corban Yaxley | Male | Head of the Department of Magical Law Enforcement | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Blonde | Blue | Lord Voldemort | Death Eaters | Imperius curse, undercover work | Pre 1970s | |
| 28 | Colin Creevey | Male | Student | Gryffindor | Unknown | Unknown | Human | Muggle-born | Mousy | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Photography | 3 May - 31 August 1981 | 2 May, 1998 | |
| 34 | Cho Chang | Female | Student | Ravenclaw | Unknown | Swan | Human | Pure-blood or half-blood | Black | Dark | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Seeker | 1 September 1978-31 August 1979 | |
| 19 | Charles Weasley | Male | Dragonologist | Gryffindor | 12" Ash unicorn tail hair | Unknown | Human | Pure-blood | Red | Grey | Order of the Phoenix | Gringotts Wizarding Bank | Highly skilled dragon trainer| one-time Gryffindor Seeker | 12 December, 1972 | |
| 74 | Charity Burbage | Female | Professor of Muggle Studies | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Blonde | Teaching and studying the Muggle world | Before 1976 | Late July, 1997 | |||
| 84 | Cedric Diggory | Male | Student | Hufflepuff | 12¼", Ash, unicorn hair | Unknown | Human | Pure-blood | Dark | Grey | Skilled Seeker | 1 September - 30 October 1977 | 24 June, 1995 | |
| 63 | Bloody Baron | Male | Slytherin House Ghost | Slytherin | Unknown | Unknown | Ghost | Pure-blood or half-blood | Controlling Peeves | Post 982 | 11th century | |||
| 57 | Blaise Zabini | Male | Student | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Black | Brown | Chaser | 1 September, 1979 – 21 April, 1980 | ||
| 116 | Benjy Fenwick | Male | Unknown | Unknown | Human | Black | Black | Original Order of the Phoenix | 1981 | |||||
| 50 | Bellatrix Lestrange | Female | Slytherin | 12¾" Walnut dragon heartstring | Human | Pure-blood | Black | Lord Voldemort | Death Eaters | She is a duellist of great skill and an experienced Occlumens | 1951 | 2 May, 1998 | |||
| 101 | Barty Crouch Sr. | Male | Head of the Department of International Magical Cooperation | Unknown | Non-corporeal | Human | Pure-blood | Grey | Minister of Magic | Multilingual, able to fight the Imperius curse | Pre 1940 | 27 May, 1995 | ||
| 73 | Barty Crouch Jr. | Male | Professor of Defence Against the Dark Arts (as Alastor Moody) | Unknown | Unknown | Human | Pure-blood or half-blood | Straw blond | Pale, freckled | Lord Voldemort | Death Eaters | Skilled potioneer | 1962 | 1995-1996 | |
| 134 | Aurora Sinistra | Female | Astronomer at Hogwarts | Unknown | Unknown | Human | Pure-blood or half-blood | Dark | Dark | Hogwarts School of Witchcraft and Wizardry | Pre 1968 | |||
| 91 | Augustus Rookwood | Male | Unspeakable | Slytherin | Unknown | None | Human | Pure-blood or half-blood | Brown/greying | Lord Voldemort | Death Eaters | Spying for Lord Voldemort | pre 1964 | ||
| 32 | Arthur Weasley | Male | Head of the Misuse of Muggle Artefacts Office | Gryffindor | Unknown | Weasel | Human | Pure-blood | Red | Green | Order of the Phoenix| British Ministry of Magic | Muggle world works | 6 February, 1950 | |
| 130 | Argus Filch | Male | Caretaker of Hogwarts | Human | Squib | Grey | Pale | Hogwarts School of Witchcraft and Wizardry | Sniffing out mischief | Pre 1951 | ||||
| 92 | Antonin Dolohov | Male | Death Eater | Slytherin | Unknown | None | Human | Pure-blood or Half-blood | Dark | Lord Voldemort | Death Eaters | Duelling. Fought and killed Molly Weasley's brothers and Remus Lupin | pre 1950 | ||
| 45 | Anthony Goldstein | Male | Student | Ravenclaw | Unknown | Non-corporeal | Human | Half-blood | Blonde | Grey | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Prefect | 1 September 1979- 31 August 1980 | |
| 22 | Angelina Johnson | Female | Student | Gryffindor | Unknown | Unknown | Human | Unknown | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 24 – 30 October, 1977 | |
| 77 | Amycus Carrow | Male | Professor of Dark Arts | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Cruciatus Curse | Pre 1982 | |||
| 102 | Amos Diggory | Male | Employee of the Department for the Regulation and Control of Magical Creatures[ | Unknown | Non-corporeal | Human | Pure-blood or half-blood | Brown | Ruddy | Minister of Magic | Works for the Department for the Regulation and Control of Magical Creatures | |||
| 24 | Alicia Spinnet | Female | Student | Gryffindor | Unknown | Unknown | Human | Pure-blood or half-blood | Brown | Brown | Dumbledore's Army |Hogwarts School of Witchcraft and Wizardry | Chaser | 1 September 1977- 31 August 1978 | |
| 97 | Alice Longbottom | Female | Auror | Unknown | Unknown | Human | Pure-blood | Blonde | Original Order of the Phoenix | Auror | ||||
| 76 | Alecto Carrow | Female | Professor of Muggle Studies | Slytherin | Unknown | Unknown | Human | Pure-blood or half-blood | Lord Voldemort | Death Eaters | Spreading anti-Muggle propaganda | Pre 1981 | |||
| 125 | Albus Severus Potter | Male | Student | Slytherin | Unknown | Unknown | Human | Half-blood | Jet-black | Bright green | Between 1 September 2005-31 August 2006 | |||
| 4 | Albus Percival Wulfric Brian Dumbledore | Male | Headmaster | Gryffindor | 15" Elder Thestral tail hair core | Phoenix | Human | Half-blood | Silver| formerly auburn | Blue | Dumbledore's Army | Order of the Phoenix | Hogwarts School of Witchcraft and Wizardry | Considered by many to be one of the most powerful wizards of his time | Late August 1881 | 30 June, 1997 |
| 96 | Alastor Moody | Male | Auror | Unknown | Non-corporeal | Human | Pure-blood | Grey | One dark, one electric blue | Order of the Phoenix | A highly accomplished Auror and an outstanding duellist, also skilled in non-verbal magic | Pre 1960 | 27 July, 1997 | |
| 106 | Aberforth Dumbledore | Male | Owner and Barman of the Hog's Head Inn | Unknown | Goat | Human | Half-blood | Grey | Bright Blue | Order of the Phoenix | Bartending, caring for Ariana | 1 September 1883-31 August 1884 | ||
| 18 | (Bill) William Arthur Weasley | Male | Curse-Breaker for Gringotts Bank | Gryffindor | Unknown | Unknown | Human (Werewolf traits) | Pure-blood | Red | Blue | Order of the Phoenix | Highly skilled curse-breaker for Gringotts Wizarding Bank| very intelligent| past Hogwarts Head Boy | 29 November, 1970 |
group_by() + summarise() : resumir datos por categoríasCuando necesitamos resumir información, obtener estadísticas por categoría o calcular valores como promedios, totales o máximos, utilizamos las funciones group_by() y summarise().
Estas dos funciones suelen trabajar juntas:
group_by(): organiza los datos en grupos según una o más variables.
summarise(): calcula resúmenes para cada grupo (conteos, medias, mínimos, máximos, etc.).
En conjunto, permiten transformar tablas grandes en resúmenes claros y compactos.
Ejemplo:
Contar personajes por casa:
hp_data |> group_by(House) |> summarise(N = n()) # A tibble: 7 × 2
House N
<chr> <int>
1 "" 39
2 "Beauxbatons Academy of Magic" 3
3 "Durmstrang Institute" 1
4 "Gryffindor" 38
5 "Hufflepuff" 13
6 "Ravenclaw" 18
7 "Slytherin" 28
group_by(House) separa los datos por cada casa.summarise() calcula un resultado para cada grupo; en este caso, n() cuenta cuántas filas hay en cada casa.Realiza el conteo de cada uno de los tipos de Patronus.
hp_data |> group_by(Patronus) |> summarise(N = n()) # A tibble: 21 × 2
Patronus N
<chr> <int>
1 "" 10
2 "Boar" 1
3 "Cat" 2
4 "Doe" 2
5 "Fox" 1
6 "Goat" 1
7 "Hare" 1
8 "Horse" 1
9 "Jack Russell terrier" 1
10 "Jack rabbit, Wolf" 1
# ℹ 11 more rows
Recuerda que cualquier resultado obtenido ya sea mediante indexación con corchetes, creación de subconjuntos o manipulación con funciones de dplyr puede guardarse como un nuevo data frame. Esto es muy útil cuando deseas continuar el análisis más adelante, trabajar solo con una parte específica de los datos o mantener tus resultados organizados.
The Carpentries. (2025). R for Reproducible Scientific Analysis. https://swcarpentry.github.io/r-novice-gapminder/
Demiryürek, G. (2021). Harry Potter Dataset. Kaggle.
https://www.kaggle.com/datasets/gulsahdemiryurek/harry-potter-dataset