Method
How was it made, and where can it go wrong?
This page does not walk through the process stage by stage. It answers what a reviewer would ask, and each section ends in something you can check.
It starts from one particular row: Clara Campoamor's on 1 October 1931, the day women's suffrage was voted.
How to load the deposited CSV: the lines of code assume it is loaded as d
import pandas as pd
d = pd.read_csv("2REP_Diaries.csv", sep=";", dtype={"rep_id": "Int64"})What is a row?
A row is what the Diario prints between one speaker heading that the tagging recognises and the next.
The heading is the one that opens each turn on paper: «El Sr. PRESIDENTE:», «La Srta. CAMPOAMOR:». What follows, up to the next heading the tagging recognises, is the text of a row.
The two rows in the figure are consecutive in the session of 1 October 1931. In the first, the Chair says seven words: «Ruego a la Cámara que guarde silencio.» (‘I ask the Chamber to keep silent.’)
In the second, Clara Campoamor says 1,460. It begins: «Yo ruego a la Cámara que me escuche en silencio» (‘I ask the Chamber to hear me in silence’). Counting rows is not counting speech.
The text is neither summarised nor lemmatised. The order is kept, and the order is information: first the Chair asks for silence, then Campoamor asks for it for herself.
Each row has fourteen columns. They give the session and the row's place in it, the printed heading and the text. If the speaker was identified, they add the deputy, party and district.
What does each row of the CSV hold?
Two consecutive rows of the session of 1 October 1931, with their 14 columns, as they stand in the deposited CSV.
The session and the row's place
id54235424num_session4848order2526date1931-10-011931-10-01legislature1931-19331931-1933What was printed
speakerEl Sr. PRESIDENTE:La Srta. CAMPOAMOR:speechRuego a la Cámara que guarde silencio.Yo ruego a la Cámara que me escuche en silencio; no es con agresiones y no es con ironias como vais a vencer mi fortaleza; la única cosa que yo tengo aquí ante vosotros, Sres. Diputados, que merezca la consideración y acaso la emulación es precisamente el defender un derecho a que me obliga mi naturaleza y mi fe, con tesón y […]The text continues; only its beginning is shown here.nwords71460The deputy, if identified
rep_id133175rep_nameJulian Besteiro FernandezClara Campoamor Y RodriguezdistrictMadridMadridpartyPSOEPRRparty_familySocialistaRepublicanosideologyIC| Column | El Sr. PRESIDENTE 5423 | La Srta. CAMPOAMOR 5424 | What it says |
|---|---|---|---|
id | 5423 | 5424 | The row number, from one to 107,551, with no gaps. It follows reading order: date, session and place in the session. |
num_session | 48 | 48 | The number of the session within its legislature, as the Diario prints it. It starts again in each legislature: a session is identified by its date and number together. |
order | 25 | 26 | The place of the row in its session, counted from zero. |
date | 1931-10-01 | 1931-10-01 | The date of the session, in YYYY-MM-DD format. Some days had two sessions. |
legislature | 1931-1933 | 1931-1933 | Legislature: 1931-1933, 1933-1935 or 1936-1939. The third includes the wartime sessions and those in Mexico. |
speaker | El Sr. PRESIDENTE: | La Srta. CAMPOAMOR: | The printed speaker heading, as optical character recognition read it: «El Sr. PRESIDENTE:», «La Srta. CAMPOAMOR:». It is the only column that gives the office. |
speech | Ruego a la Cámara que guarde silencio. | Yo ruego a la Cámara que me escuche en silencio; no es con agresiones y no es con ironias como vais a vencer mi fortaleza; la única cosa que yo tengo aquí ante vosotros, Sres. Diputados, que merezca la consideración y acaso la emulación es precisamente el defender un derecho a que me obliga mi naturaleza y mi fe, con tesón y […] | The text of the row, neither summarised nor corrected by hand, with the shorthand writer's bracketed notes. |
nwords | 7 | 1460 | The words in the text, split on the space character. |
rep_id | 133 | 175 | The deputy, according to the project's table of deputies. It is a person, not a seat; in the Chair's rows, the deputy who was presiding. |
rep_name | Julian Besteiro Fernandez | Clara Campoamor Y Rodriguez | The deputy's full name, without accents and with each word capitalised. |
district | Madrid | Madrid | The constituency for which the deputy was elected. |
party | PSOE | PRR | The initials of the deputy's party in that legislature. |
party_family | Socialista | Republicanos | The deputy's party family. |
ideology | I | C | The position of the deputy's party, from EI, far left, to ED, far right. |
The same data as the chart, in rows.
CSV and Excel, with a README in Spanish and in English.
No form: these are aggregate data.
- Source
- Luz y Taquígrafos
Checksum:360332a0ff13
Numbers exported on - How to cite
- Rodrigues-Silveira, Rodrigo; García-Díez, Fátima; Llamazares, Iván; Martínez-Barahona, Elena; Barreto Martín, Eduardo. ‘Anatomy of a row’. Figure from Luz y Taquígrafos. https://luz.parlaibero.es/en/metodo/#fila. Source: Luz y Taquígrafos ·
360332a0ff13. Exported on .
Before you read it Campoamor's ideology is C because it is that of her party, the Radical Party.
With the keyboard: Tab moves to the figure; ← and → step through its marks; Home and End go to the first and the last; Esc closes the note.
Try it
In the explorer
Query for the explorer's search box"me escuche en silencio"
Open the explorer Select the query and copy it.
The explorer cannot open a search from a link: copy the query and paste it into its search box (/ key).
Search for the phrase in quotation marks and open the result. The reader numbers it «Orden 30 de 415»: it is the same row, counted in the explorer. Open the explorer
In Python, on the deposited CSV
d[d.id.isin([5423, 5424])].THow does the printed Diario become a row?
In five steps, each with its number. None of them corrects the text by hand.
The source. There are 755 issues of the Diario de Sesiones of the Congress, scanned to PDF from its historical archive. They add up to 28,780 pages, according to the count of the project's files.
The reading. Each page was turned into an image and read by an optical character recognition model, GLM-OCR. What failed, and how it was recovered, is set out below.
The cleaning. A program removed from each page the running header, with its folio and date, and the folio at the foot. It then rejoined words hyphenated at the end of a line.
It also joined the short lines of the Diario's columns into paragraphs. None of these steps corrects reading errors.
The turns. A regular expression looks for the printed speaker heading: «El Sr.», «La Sra.», «La Srta.», «Los Sres.». It also accepts misread variants, such as «Ei Sr.» or «E1 Sr.».
Each heading must contain at least one word of three capital letters. That filter discarded 1,532 false positives.
That left 107,556 speaker tags. The CSV has 107,551 rows; the difference of five is not documented.
The linking. Each heading was linked to a deputy, with party, district and ideology. This is set out in ‘Who speaks’ and in ‘Party, family and ideology’.
From the Diario to the row, in five steps
How do 755 issues of the Diario become 107,551 rows?
The issues of the Diario755 issues, one per session
Scanned to PDF from the historical archive of the Congress. They are the sessions of the three legislatures and those of Mexico, in 1945.
The pages, read28,780 pages
Count from the project's files, not deposited. In the first pass 153 failed; all were recovered later.
The speaker headings107,556 tags
After discarding 1,532 false positives with the capital-letter filter. Number from the deposited README.
The rows107,551 rows
The deposited CSV. The difference of five from the tags is not documented.
The speaker, identified107,404 rows with a deputy
After reviewing all rows by hand and correcting 367 assignments.
Before you read it The difference of five between tags and rows is not documented. The pages are not deposited.
Try it
In the explorer
Open any intervention. Under the deputy's name, «Consta en el diario como» (recorded in the Diario as) gives the printed heading that opened the row. Open the explorer
In Python, on the deposited CSV
d.speaker.value_counts().head(10) # the most frequent printed headingsThe pages and the reading failures come from the project's working files, which are not deposited.
What went wrong in optical character recognition?
No page was left without text, but not all of them came out at the first attempt.
Each page was read by GLM-OCR, a vision model that the project ran on its own machines. While the model was writing, a watchdog checked whether it had fallen into a loop, repeating the same text.
If it had, the page was run again with more variation. This happened on 276 pages.
In the first pass, 153 pages failed. They were spread across 131 sessions.
GLM-OCR recovered 29 on retrying them. The remaining 124 were read with Tesseract, a classic recognition program, with its models for modern and historical Spanish.
Those Tesseract pages are in 106 sessions. None of them went through any automatic correction afterwards.
The text comes from optical character recognition and has not been corrected by hand.
Reading errors are in the text and also in the speaker headings, which are what tell us who is speaking. Try correcting a few yourself.
Proofread the Diario
This is how the machine read a speaker heading. Correct it: every reading is in the dataset, exactly as shown.
| The machine read | It should say | Rows |
|---|---|---|
El Sr PRESIDENTE: | El Sr. PRESIDENTE: | 1 |
El Sr, PRESIDENTE: | El Sr. PRESIDENTE: | 13 |
Ei Sr. PRESIDENTE: | El Sr. PRESIDENTE: | 1 |
El Sr. PERSIDENTE: | El Sr. PRESIDENTE: | 6 |
El Sr. PRESIDENT7E: | El Sr. PRESIDENTE: | 1 |
La Sr. PRESIDENTE: | El Sr. PRESIDENTE: | 1 |
El Sr. RESIDENTE: | El Sr. PRESIDENTE: | 1 |
La Srta. COMPOAMOR: | La Srta. CAMPOAMOR: | 1 |
El Sr. QL ROBLES: | El Sr. GIL ROBLES: | 1 |
El señor PRESIDENTE: | not an error | 141 |
The machine read
It should say
The Chair's heading alone is written in 32 different ways in the dataset, and there are 2,460 distinct speaker headings.
That is why the text is not corrected by hand. The tagging accepts the reading variants, and the link between each heading and its deputy was checked row by row.
The project's session metadata declare two incidents. Both can be seen in the corpus:
- Session 9, of 27 July 1931, ends in a loop: it repeats «Sánchez Guerra, Ossorio y Gallardo» six times.
- Session 48, of 1 October 1931, lost its end. Its last five rows repeat «Pido la palabra», and the last one breaks off at «El Sr. Ministro de».
Session 48 as it stands in the corpus: the end of the digitised minutes was lost in optical character recognition.
- El Sr. Ministro de la GOBERNACION (Maura): Pido la palabra.
- El Sr. Ministro de la GOBERNACION (Maura): Pido la palabra.
- El Sr. Ministro de la GOBERNACION (Maura): Pido la palabra.
- El Sr. Ministro de la GOBERNACION (Maura): Pido la palabra.
- El Sr. Ministro de la GOBERNACION (Maura): Pido la palabra. El Sr. Ministro de
Try it
In the explorer
Open the running session of any intervention of 1 October 1931 and scroll to the end. Orders 411 to 415 repeat the same request. Open the explorer
In Python, on the deposited CSV
s48 = d[(d.date == "1931-10-01") & (d.num_session == 48)]
s48.tail(5)[["id", "speaker", "speech"]]These numbers come from the project's working files, which are not deposited. The incidents are recorded in its session metadata.
Who speaks?
The Diario prints the speaker's surname, almost never the first name or party. Linking each heading to a person is the most delicate step.
The difficulty can be measured in the project's table of deputies: 317 of those who speak share their first surname with someone else.
Each heading was looked up in the project's table of deputies in steps, from the strictest to the most flexible:
- identical surnames;
- printed surnames as the beginning of the full ones;
- the first surname;
- an approximate similarity between surnames, with a threshold of 0.82;
- the same similarity, on the first surname.
If several deputies matched, the legislature decided. The Chair, the Vice-Presidents and the ministers were resolved separately, with the context of each session.
The deposited README calls that similarity Jaro-Winkler. The code uses the one in Python's difflib library.
Then all rows were reviewed by hand. The review corrected 367 assignments.
As a result, 99.86% of the rows have a deputy. 147 are left without one.
The README says those rows belong to ministers without a seat. Read one by one, 123 do indeed carry a ministry's heading.
The rest belong to secretaries, to the Chair without a name, or to headings damaged in reading.
The Chair has a party. «El Sr. PRESIDENTE:» goes to the deputy who was in the Chair, with party and ideology. In 586 of the 755 sessions, a Vice-President took the Chair for part of the session.
That is why the Presidents of the Chamber top any unfiltered word count.
Try it
In the explorer
Query for the explorer's search box"guarde silencio"
Open the explorer Select the query and copy it.
Search for the phrase and open a result from the Chair. The record attributes it to the deputy who was in the Chair; «Consta en el diario como» says only «El Sr. PRESIDENTE:». Open the explorer
In Python, on the deposited CSV
d[d.rep_id.isna()].speaker.value_counts() # the rows without a deputyWhoever is in the Chair orders the debate, but does not carry it. To count speakers, remove the Chair first.
What is speech and what is not?
A short row is usually procedure; a long row may not be speech.
66.53% of the rows have 50 words or fewer. The median is fourteen words.
More than half of those short rows belong to the Chair: 58.17%.
At the other end, sort the rows from longest to shortest and take the first 10%. That slice holds 74.5% of the words.
Length is not importance. A short row may be a vote or a decisive interruption.
What is not speech. The Diario also prints what nobody said aloud: voting lists, committee reports, written requests, tables and the account of the session.
The dataset keeps it in 12,654 rows of their own, «Comentarios del Diario» (the Diario's comments). Each session also opens with its summary.
In the explorer, the «Solo lo que se habla» (speech only) box leaves out summaries and comments. That leaves 108,291 of the 121,700 interventions.
The separation follows an audit by the project. That a row is kept as speech does not prove that all its text was spoken in the plenary.
How many rows are short, and how much text do the long ones take?
- From the Chair
- From other speakers
Rows · All
Words per row, in ever wider bands
Rows
Up to 50 words: 71,550 of 107,551 rows.
Rows · 1931-1933
Words per row, in ever wider bands
Rows
Rows · 1933-1935
Words per row, in ever wider bands
Rows
Rows · 1936-1939
Words per row, in ever wider bands
Rows
Words · All
Words per row, in ever wider bands
Words
Words · 1931-1933
Words per row, in ever wider bands
Words
Words · 1933-1935
Words per row, in ever wider bands
Words
Words · 1936-1939
Words per row, in ever wider bands
Words
Where the words are concentrated
What share of all words the longest rows hold, from the longest to the shortest.
Share of all words
Rows, from longest to shortest
- The first 10% of rows holds 74.5% of the words.
- The first 20% holds 90.4%.
| Words per row | Rows from the Chair | Rows from the rest | Words from the Chair | Words from the rest |
|---|---|---|---|---|
| All | ||||
| 0–5 | 15,741 | 18,455 | 63,572 | 57,567 |
| 6–10 | 11,360 | 3,642 | 82,144 | 27,359 |
| 11–20 | 6,534 | 3,311 | 97,617 | 49,942 |
| 21–50 | 7,989 | 4,518 | 256,821 | 151,102 |
| 51–100 | 3,123 | 4,216 | 220,235 | 308,889 |
| 101–300 | 2,436 | 8,864 | 389,599 | 1,657,672 |
| 301–1,000 | 619 | 10,202 | 329,208 | 5,787,812 |
| 1,001–3,000 | 341 | 4,884 | 605,156 | 8,148,899 |
| 3,001–10,000 | 96 | 1,196 | 419,254 | 5,387,378 |
| more than 10,000 | 2 | 22 | 27,863 | 267,807 |
| 1931-1933 | ||||
| 0–5 | 8,805 | 10,980 | 35,471 | 33,799 |
| 6–10 | 6,604 | 2,125 | 46,891 | 15,888 |
| 11–20 | 3,631 | 1,955 | 55,021 | 29,438 |
| 21–50 | 4,517 | 2,720 | 144,908 | 90,668 |
| 51–100 | 1,763 | 2,454 | 124,272 | 180,116 |
| 101–300 | 1,361 | 5,118 | 219,877 | 961,665 |
| 301–1,000 | 344 | 5,654 | 178,853 | 3,180,097 |
| 1,001–3,000 | 137 | 2,523 | 230,518 | 4,217,488 |
| 3,001–10,000 | 27 | 620 | 123,731 | 2,882,458 |
| more than 10,000 | 2 | 15 | 27,863 | 187,268 |
| 1933-1935 | ||||
| 0–5 | 6,213 | 6,576 | 25,160 | 20,949 |
| 6–10 | 4,058 | 1,355 | 30,188 | 10,269 |
| 11–20 | 2,464 | 1,247 | 36,134 | 18,866 |
| 21–50 | 3,067 | 1,612 | 98,850 | 54,223 |
| 51–100 | 1,176 | 1,586 | 83,390 | 116,036 |
| 101–300 | 918 | 3,305 | 143,653 | 611,692 |
| 301–1,000 | 207 | 3,901 | 112,670 | 2,226,775 |
| 1,001–3,000 | 182 | 1,950 | 336,507 | 3,227,019 |
| 3,001–10,000 | 58 | 462 | 242,796 | 2,022,502 |
| more than 10,000 | 0 | 5 | 0 | 58,441 |
| 1936-1939 | ||||
| 0–5 | 723 | 899 | 2,941 | 2,819 |
| 6–10 | 698 | 162 | 5,065 | 1,202 |
| 11–20 | 439 | 109 | 6,462 | 1,638 |
| 21–50 | 405 | 186 | 13,063 | 6,211 |
| 51–100 | 184 | 176 | 12,573 | 12,737 |
| 101–300 | 157 | 441 | 26,069 | 84,315 |
| 301–1,000 | 68 | 647 | 37,685 | 380,940 |
| 1,001–3,000 | 22 | 411 | 38,131 | 704,392 |
| 3,001–10,000 | 11 | 114 | 52,727 | 482,418 |
| more than 10,000 | 0 | 2 | 0 | 22,098 |
The same data as the chart, in rows.
CSV and Excel, with a README in Spanish and in English.
No form: these are aggregate data.
- Source
- Luz y Taquígrafos
Checksum:360332a0ff13
Numbers exported on - How to cite
- Rodrigues-Silveira, Rodrigo; García-Díez, Fátima; Llamazares, Iván; Martínez-Barahona, Elena; Barreto Martín, Eduardo. ‘Procedure versus speech’. Figure from Luz y Taquígrafos. https://luz.parlaibero.es/en/metodo/#tramite. Source: Luz y Taquígrafos ·
360332a0ff13. Exported on .
Before you read it What is measured is length; ‘procedural’ is an interpretation. The Chair is recognised by its printed heading, with the explorer's parser.
With the keyboard: Tab moves to the figure; ← and → step through its marks; Home and End go to the first and the last; Esc closes the note.
Try it
In the explorer
Query for the explorer's search box"casas viejas"
Open the explorer Select the query and copy it.
Search for the phrase twice, with the «Solo lo que se habla» box ticked and without it. The difference is summaries and comments from the Diario, not anyone's speech. Open the explorer
In Python, on the deposited CSV
(d.nwords <= 50).mean() # the share of short rowsHow was each session dated?
Each date was checked against four sources, session by session.
The audit cross-checked four independent sources for each session:
- the running headers of each printed page;
- the session heading, «SESIÓN CELEBRADA…» (session held…);
- the dates cited in the text itself;
- the sequence of Diario numbers, with the day of the week.
To settle a date it required two independent indications, or an unambiguous printed header.
The paper makes mistakes too. The title page of a volume may give the date on which those Cortes began, not that of the session. And some headings carry a printer's error or a damaged digit that optical character recognition misread.
The audit has a limit: it does not detect a date error that is consistent with the sequence.
Try it
In the explorer
With no search text, choose the 1933-1935 legislature and type 77 in «Nº de sesión» (session no.). All its interventions are from 4 May 1934. Open the explorer
In Python, on the deposited CSV
d[(d.legislature == "1933-1935") & (d.num_session == 77)].date.unique()The audit's table of evidence is not deposited.
What do party, family and ideology mean?
The three columns describe the deputy, not the row. They come from the project's table of deputies.
Party is given by deputy and legislature. Anyone who changed party between legislatures also changes in the dataset.
Family groups parties. In the CSV it has 33 distinct values, with spelling variants such as «Repubicanos» or «Republicanoses».
The explorer reduces them to 24 families.
Ideology is coded from EI, far left, to ED, far right, with C in the centre. It is assigned to the deputy according to party; it does not measure what was said.
It is not always uniform within a party. In five parties, different codes coexist.
The CEDA, for example, is D in 7,656 rows. But it is CD in 255. And it is C in 51.
«Republicanos» groups parties coded from the left to the centre-right.
The Chair carries the party and ideology of whoever is in the Chair.
Some labels are pending review by the author:
- Diego Martínez Barrio appears in the AR party in 1931-1933;
- the «Liberal» family, with 15,364 rows, which the explorer merges with «Liberales»;
- the Lliga, which is CD in the CSV and D in the README.
Left or right?
A word and seven benches, from the far left to the far right. Where did it sound most, per ten thousand words?
Three points for the right bench; two if you are next to it; one if two benches away.
| Word | EI | I | CI | C | CD | D | ED |
|---|---|---|---|---|---|---|---|
| «patria» | 1.4 | 0.6 | 0.8 | 1.5 | 0.9 | 1.1 | 1.9 |
| «Iglesia» | 2.1 | 2.3 | 4.0 | 1.3 | 2.8 | 3.5 | 4.7 |
| «Dios» | 0.0 | 0.2 | 0.3 | 0.3 | 0.3 | 0.6 | 0.8 |
| «marxismo» | 0.0 | 0.0 | 0.1 | 0.0 | 0.0 | 0.1 | 0.4 |
| «religión» | 0.0 | 0.4 | 1.0 | 0.6 | 0.7 | 1.1 | 0.9 |
| «propiedad» | 0.6 | 2.3 | 3.0 | 2.7 | 4.3 | 4.9 | 3.9 |
| «Cataluña» | 5.0 | 5.4 | 3.1 | 3.9 | 6.4 | 1.3 | 4.7 |
| «monarquía» | 1.6 | 1.6 | 2.0 | 1.3 | 1.3 | 0.3 | 1.3 |
| «caciques» | 0.4 | 1.0 | 0.8 | 0.5 | 0.3 | 0.3 | 0.2 |
| «fascismo» | 11.0 | 0.1 | 0.2 | 0.0 | 0.1 | 0.2 | 0.3 |
| «trabajadores» | 15.4 | 4.6 | 1.6 | 1.1 | 0.7 | 1.5 | 0.6 |
| «España» | 35.2 | 13.7 | 13.3 | 12.2 | 14.3 | 12.0 | 17.3 |
EI: Far left · I: Left · CI: Centre-left · C: Centre · CD: Centre-right · D: Right · ED: Far right
The ideology is that of each speaker's party, not their own. The far left speaks little in the dataset: with few appearances, its rate jumps. And a word sounding more on one bench says nothing about the tone or the side.
Try it
In the explorer
Choose the CEDA party in the filters and open the «Ideología» facet. You will see more than one code. Open the explorer
In Python, on the deposited CSV
d[d.party == "CEDA"].ideology.value_counts()A broad category serves to compare blocs, not to classify a person.
What does the corpus not claim, and how should you compare?
The dataset says who spoke, when and how much. It does not say about what, in what tone, from what position or how they voted.
Legislatures are unequal. The first holds 53.28% of the words.
Compare rates, not volumes: words per session, or each group's share within its legislature.
The vote is not a column. Roll-call votes are in the text, as lists of names, in rows of the Diario's comments.
Tone is not measured. The shorthand writer's bracketed notes, «(Rumores.)», «(Aplausos.)», are in the text. Nobody has turned them into a variable of the dataset.
Counting a word does not tell you who defends it or in what tone.
- Topic. There is no topic column: each search is a hypothesis of yours.
- Tone. The bracketed notes are in the text; tone is not measured.
- Position. Ideology classifies the deputy, not what they said.
- Vote. The roll-call lists are in the text, not in a column.
Try it
In the explorer
Query for the explorer's search box"total 161"
Open the explorer Select the query and copy it.
Search for the phrase with the «Solo lo que se habla» box ticked and without it. With the box ticked, the list disappears: it is a comment from the Diario. Open the explorer
In Python, on the deposited CSV
print(d.loc[d.id == 5453, "speech"].iloc[0]) # the list, inside the Chair's rowThat the Diario records something does not make it true: the dataset transcribes what was printed; it does not verify it.
Where is the full documentation?
What is deposited, what is not, and what this site publishes.
Deposited in Harvard Dataverse: the CSV, the README and the change logs, in Spanish and English.
Not deposited. The session metadata (Diario, pages, President of the Cortes and Government) and the table of deputies against which each heading was linked, which the README offers on request.
On this site: the exporter that computes each number, and a file, procedencia.csv, with the formula and date of all of them.
What has no public address is not linked.
A derived edition for research: wherever it differs, the Diario de Sesiones prevails.
Try it
In the explorer
Open «Sobre este corpus» (about this corpus), in the explorer's side panel: it gives the dataset's citation. Open the explorer
In Python, on the deposited CSV
d.shape # compare it with the README: rows and columns