Using PyMaRC to translate .mrc files to tabular datasets results in odd formatting

21 views
Skip to first unread message

Mykle Law

unread,
Dec 12, 2024, 5:32:19 PM12/12/24
to pymarc Discussion
I could use a little help in understanding where I'm at from someone more familiar with PyMarc. I've had a good bit of trouble trying to get my data into a tabular arrangement.

I can parse almost perfectly to mrk (or even json, but that's not as helpful to my needs).

Here's a sample line with the formatting issues. Hoping for a little help in understanding how to conceive the data arrangement before I keep going.

For ease of reading-- I've swapped the tabs in this sample for line breaks:

001 None 1
003 None UtSlFS
005 None 20241210113000.0
007 None ta
008 None 790910s1875||||||||||||||||||||||||eng|d
035 Indicators(first=' ', second=' ') (UtSlFS)1
040 Indicators(first=' ', second=' ') FHL eng FHL FHL rda
082 Indicators(first='#', second='4') 929.273 R198
100 Indicators(first='1', second='#') 8 Crane, Ellery B., 1836-1925
245 Indicators(first='1', second='4') The Rawson family : a revised memoir of Edward Rawson, secretary of the Colony of Massachusetts Bay from 1650 to 1686 : with genealogical notices of his descendants, including nine generations / by E.B. Crane
264 Indicators(first='#', second='1') Worcester, Massachusetts : Rawson family, 1875.
300 Indicators(first=' ', second=' ') xv, 334 pages, [10] leaves of plates : illustrations, color coat of arms, portraits
500 Indicators(first=' ', second=' ') Includes indexes.
505 Indicators(first='8', second='#') Includes Rawson, Dorr, Hale, Hazeltine, Holmes, Hutchinson, Hazelton, Taft and related families.
520 Indicators(first=' ', second=' ') Edward Rawson emigrated from England to Newbury, Massachusetts in 1636 or 1637. He died after 1691. Descendants and relatives lived in New England, New York, Ohio, Indiana, Michigan, Illinois, Wisconsin and elsewhere. Includes reports and minutes of the first, second and third Rawson Family Reunions, all held in Worcester, Massachusetts.
530 Indicators(first=' ', second=' ') Also available on microfilm and digital images.0

Andrew Hankinson

unread,
Dec 12, 2024, 6:18:28 PM12/12/24
to pym...@googlegroups.com, pymarc Discussion
I’m not really sure what you’re going for, but it looks like you’re printing the Indicators tuple (or None) directly instead of just their values.

But without knowing what problem you’re having I can’t really say much more than that.

On 12 Dec 2024, at 23:32, Mykle Law <mykl...@gmail.com> wrote:

I could use a little help in understanding where I'm at from someone more familiar with PyMarc. I've had a good bit of trouble trying to get my data into a tabular arrangement.
--
You received this message because you are subscribed to the Google Groups "pymarc Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pymarc+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pymarc/4e41f7e2-b050-48d3-bbd6-f11dc905c33an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages