The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 1 missing columns ({'event'})

This happened while the csv dataset builder was generating data using

hf://datasets/mayerantoine/injury-narrative-coding/test.csv (at revision 61ac88cc557f00ba44aa78190116b185bb4b8ac7)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              text: string
              sex: int64
              age: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 577
              to
              {'text': Value(dtype='string', id=None), 'sex': Value(dtype='int64', id=None), 'age': Value(dtype='int64', id=None), 'event': Value(dtype='int64', id=None)}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1321, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 935, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 1 missing columns ({'event'})
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/mayerantoine/injury-narrative-coding/test.csv (at revision 61ac88cc557f00ba44aa78190116b185bb4b8ac7)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

text
string
sex
int64
age
int64
event
int64
57YOM WITH CONTUSION TO FACE AFTER STRIKING IT WITH A POST POUNDER WHILE SETTING A FENCE POST
1
57
62
A 45YOM FELL ON ARM WHILE WORKING HAD SLIPPED ON WATER FX WRIST
1
45
42
58YOM WITH CERVICAL STRAIN BACK PAIN S P RESTRAINED TAXI DRIVER IN LOW SPEED REAR END MVC NO LOC NO AB DEPLOYED
1
58
26
33 YOM LAC TO HAND FROM A RAZOR KNIFE
1
33
60
53YOM AT WORK IN A WAREHOUSE DOING UNSPECIFIED LIFTING AND STRAINED LO WER BACK
1
53
71
31YOM AT A CLIENTS HOME TRIMMING A TREE WITH A CHAIN SAW AND THE SAW KICKED BACK HIT LOWER ARM LACERATION TO LOWER ARM
1
31
62
54 YO MALE CUT FINGER SHARPENING A KNIFE AT WORK DX RIGHT INDEX FINGERLACERATION B
1
54
60
60 YOM STATES HE WAS WORKING IN A WOOD SHOP YESTERDAY AND FELT SOMETHING GO INTO HIS RT EAR DX FB REMOVAL RT EAR CANAL
1
60
69
36 YO M C O B L BACK PAIN SINCE FRI WORSE TODAY PT LIFTS HEAVY TRASH BAGS AT WORK DX LUMBAR STRAIN
1
36
71
41YOF SHOULDER PAIN AFTER LIFTING A PACKAGE AT WORK
2
41
71
48 YOM CELLULITIS TO LT KNEE REPORTS GOING UP AND DOWN A LADDER WHILE PAINTING GUTTERS AT WORK THE LAST 2 DAYS
1
48
73
38YOM HURT HAND HIT WITH SCREWDRIVER DX PUNNC TO HAND
1
38
62
47YOM KNEE PAIN AT WORK CROUCHED DOWN WHEN HE STOOD UP HE FELT A POP IN HIS RT KNEE C O PAIN WHEN HE STRAIGHTENS LEG
1
47
73
27 YO F WORKING AT HOSPITAL ATTEMPTING TO GET A BLOOD SUGAR ON A PATIENT WHEN SHE WAS SPLASHED IN EYE WITH BLOOD DX BLOOD EXPOSURE
2
27
55
23YOM LAC TO R ARM WHILE USING A SHEETROCK KNIFE AT WORK DX ARM LAC
1
23
62
25 YOM FX NOSE S P ASSAULT BY CLIENT AT WORK STRUCK TO FACE MULTIPLE TIMES NO LOC
1
25
11
51YOM AT WORK USING A FLOOR BUFFER AND SUSTAINED AN AMPUTATION TO TIP OF FINGER
1
51
60
40YOM FELL AT WORK FROM SCAFFOLDING DX SHOULDER DISLOCATION
1
40
43
44 YOF DX LT THUMB SPRAIN STRAIN S P DUE TO ASSISTING IN CHANGING A HEAVY INDIVIDUAL AT WORK
2
44
71
38YF REPORTS ALWAYS HEAVY LIFTING WORK NOWWITH C O SHOULDER PAIN
2
38
71
43 YO M AT 3PM YESTERDAY WAS CUTTING WIRE FOR CONSTRUCTION PROJECT CUT WIRE THE END FLEW INTO AIR CUTTING HIM OPEN DX SHOULDER LACERATION
1
43
62
21YO WHITE MALE AT WORK A GLASS BROKE L 5TH DIGIT LACERATION DX LACERATION
1
21
60
31 YOM WAS AT WORK AT A PIG FARM WAS OPENING A CRATE WITH TWO SOWS IN IT AND ONE SLAMMED HAND BETWEEN CRATE LOCK AND PIG DX HAND CONTUSION
1
31
13
27 Y O F LBP AFTER FALLING 2 1 2 FEET STANDIING ON A PALLET AT WORK
2
27
43
39YOM AT WORK FELL HITTING HEAD ON A METAL TENT DX CHI
1
39
42
A 34YOM DID HEAVY LIFTING AT WORK SHOULDER STRAIN
1
34
71
62YOM W GROIN INGUINAL PAIN REPORTS HE HAS BEEN DOING STRENOUS WORK ONHIS CONSTRUCTION JOB
1
62
99
66 YO F EMPLOYEE PRESETNS AFTER TRIPPING OVER IV TUBING IN DARK ROOM AND FALLING FORWARD INTO THE WALL C O FACE RT KNEE PAIN DX C H I TRAP SPA
2
66
42
30 YOF WAS AT WORK AND PIPE BURST AND CONTENTS SPLASHED IN HER FACE
2
30
32
45 YEAR OLD MALE PATIENT CUT ARM ON DIRTY PIECE OF ALUMINUM AT WORK DX 6 CM LACERATION TO RIGHT FOREARM
1
45
60
39 YOM DX RT ARM BRUISE DUE TO FALL FROM SCAFFOLD TODAY
1
39
43
17YOM STARTED A LANDSCAPE JOB TODAY AND DEVELOPED PAIN IN LOWER BACK DX LUMBAR STRAIN
1
17
70
55 YOM STATES FELL AT WORK INJURING WRIST DX RIGHT WRIST SPRAIN
1
55
42
30 YOF LACERATION TO LT HAND S P ACCIDENTALLY CUTTING HAND ON A KNIFE THAT WAS PROTRUDING FROM A NAPKIN AT WORK LAST NIGHT
2
30
60
50 YO M S B TAXI DRIVER IN COLLISION THIS AM C O PAIN RT NECK HIT HEAD ON BY CAR MAKING LT TURN W O AIRBAGS DX MSK PAIN
1
50
26
HUMAN BITE SCRATCH INJ S L ARM 29YOWM AT WORK WAS ATTACKED BY A CLIENT THAT BIT HIS FOREARM SCRATCHED HIM AS WELL
1
29
11
63 YOM PUSHED ON EMERGENCY BRAKE ON TRUCK AT WORK SUDDEN PAIN IN FOOT DX FOOT PAIN
1
63
71
50 YOF TRIED TO STOP STACK OF HEAVY PLATES FROM FALLING AT WORK AND HURT FINGER CONTUSION FINGER
2
50
71
37YOM HAD SLEDGE HAMMER SPLIT OFF SPLINTER WORK FB IN CHEST DX FB IN CHEST
1
37
60
43 YO F EMPLOYEE C O HEADACHE LT ELBOW LT ANKLE PAIN 1 HR AGO WALKING UP STAIRS TRIPPED FELL BACKWARDS HIT HEAD DX HEAD INJURY
2
43
42
41YOM WITH WELDER S FLASH TO EYES FROM WELDING AT WORK
1
41
52
39YOF WITH FRACTURED HAND CAUGHT IN MIXER AT WORK
2
39
64
27YOF CUT LT THUMB ON BREAD KNIFE WORK DX THUMB LAC
2
27
60
18 YOM CUTTING OPEN BOXES WITH BOX CUTTER AT WORK AND INJURED HIS FINGER DX LEFT INDEX FINGER LAC
1
18
62
46 YOF DX CONTUSION OF RT FOREARM S P ASSAULTED BY PATIENT AT NURSINGHOME JUST PTA
2
46
11
42YM WORKS IN A FACTORY C REPETITIVE LIFTING TASKS C O ELBOW PAIN LATERAL EPICONDYLITIS
1
42
71
50YOM WITH FRACTURE TO RIGHT HAND AFTER SLAMMING IN IT DOOR OF TRUCK WHILE WORKING AS TRUCKER
1
50
62
20YOM AT WORK FIRST DAY ON THE JOB AND DEVELOPED PAIN IN RIBS DX RIB PAIN
1
20
99
52YOM SUST FX TO KNEE WHEN HE SLIPPED AND FELL ON ICE WHILE AT WORK
1
52
42
53 YO MALE SLIPPED ON JUICE ON FLOOR AT WORK DX RIB FX B
1
53
42
59 YOM W BURN TO RT FOOT REPORTS WAS AT WORK TODAY AND WAS BURNED TO SITE W HOT WATER FROM A PRESSURE WASHER
1
59
53
50YOM AT A CLIENTS HOME AND FELL OFF A ROOF RIB FRFACTURES
1
50
43
30YF C O SOF WORSENING LBP BEGAN WHILE LIFTING A HEAVY PATIENT WORK MS
2
30
71
A 33YOM WAS AT WORK ON TRAIN SCREWDRIVER HIT ELEC BREAKER PT SUSTAINED ELECTRICAL BURN TO HAND
1
33
51
22 YO M C O CUT TO RT RING GOT YESTERDAY AT HIS JOB AT SUBJECT AT 8PM FROM METAL FOOD TRAY DX FINGER LAC
1
22
60
45 YOF WAS IN HAZMAT TRAINING AND FELL HITTING COCCYX DX CONTUSION
2
45
42
39 YOF CUT L MIDDLE FINGER AT WORK D X FINGER LAC
2
39
60
27YOM UPPER BACK PAIN AFTER DOING HEAVVY LIFTING ON THE FARM
1
27
71
35YOM WITH SHOULDER DISLOCATION AFTER FALLING FROM A LADDER AT WORK DX DISLOCATION
1
35
43
20YM WKS IN CONSTRUCTION WAS STAINDING ON BACK OF TRUCK WHEN THE TAILTAGE OF THE TRUCK BOUNCHED UP HITING B L SHINS LAC
1
20
62
38YM WAS SLICING FOOD WORK ACC CUT LT THUMB ON A KNIFE LAC
1
38
60
23YM SHOULDER PAIN AFTER PULLING LIFTING A BOX WORK MS
1
23
71
57YOF WORK AS HOME HEALTH NURSE C O FALL FROM FRONT OF TRAILER HOME JUST PTA HIT KNEE ON PLASTIC CRATE HI LOC DX LEFT PATELLA FRACTURE
2
57
43
36 YOM C O WHILE AT WORK HAD A ALTERCATION WITH A PERSON AT WORK WITH INJURY TO HAND DX HAND ABRASION
1
36
11
41 YOM C O LOWER BACK PAIN AFTER LIFTING A TIRE AT WORK DX LUMBAGO WITH SCIATICA
1
41
71
37YOM WAS LIFTING A BASKET AT WORK PUSHED UP ON RAILING IT GAVE WAY HYPERFLEXED HIS RT WRIST DX RT WRIST SPRAIN
1
37
71
36YOM SLIPPED ON WET FLOOR FELL AT WORK DX ACUTE CERVICAL SPINE STRAIN ACUTE BACK PX W SCIATICA ACUTE CONCUSSION
1
36
42
53 YOM WORK INJURY WITH METAL OBJECT LACERATION TO RIGHT THUMB
1
53
60
27YOM WAS BITTEN ON FACE WHILE ARRESTING SUSPECT AT WORK HUMAN BITE FACE
1
27
11
39 YOM PT PRESENTED TO ED WITH KNEE PAIN STATES THAT HE DRIVES A TRUCKAT WORK AND OVER USES KNEE DX KNEE EFFUSION
1
39
71
48YOF AT WORK 3 DAYS AGO BENT OVER TO GET SOMETHING HIT HEAD ON DISPLAY CASE HEADACHE
2
48
63
30 YOM FINGER PAIN AFTER FINGER TIP WAS CAUGHT IN A CONVERYOR BELT DX MALLET DEFORMITY OF FINGER
1
30
64
18YOM AT WORK USING CAUSTIC ACID TO CLEAN FLOORS INHALED FUMES COUGH THROAT BURNING DX CHEST BURNING FROM INHALATION INJURY ACUTE SORE THROAT
1
18
55
28 YOM METAL FELL ON FOOT AT WORK DX FOOT STRAIN
1
28
62
57 YOM DX FX OF LT DISTAL FIB TIB S P BIBEMS AFTER FALL ONTO LT ANKLEAT WORK
1
57
42
20YOM WORKS AT A GROCERY STORE WAS SHARPENING A KNIFE THAT SLIPPED AND CUT THUMB LAC TO THUMB
1
20
62
46 Y O F FIINGER AVULSION USING AN SUBJECT KNIFE AT WORK
2
46
62
65YOF FELL ONTO CONCRETE STEPS AT WORK FACIAL LACERATION
2
65
42
33YOF W BODY FLUID EXPOSURE TO FACE 2 2 URINE FROM A PATIENT S SHEET SPLASHING ONTO HER FACE
2
33
55
24YOF LIFTED A CLIENT FELT PAIN STRAIN IN LOW BACK DX LUMBAR STRAIN
2
24
71
52YOM WITH SPRAINED ANKLE FELL OFF LADDER AT WORK
1
52
43
SCALP CONT 41YOF WHILE AT WORK TIPPED OVER BACKWARD IN CHAIR AND HIT HER HEAD
2
41
42
21 YOF LT SIDED CHEST PRESSURE SOB AFTER PT STARTED WORKING AS A WAITRESS DX COSTOCHONDRITIS
2
21
78
23YOF WAS AT WORK MAKING AN ARREST AND WAS ASSAULTED KICKED IN THE LOWER ARM ABRASION TO LOWER ARM
2
23
11
LOW BACK PAIN 20YOWF C O LOW BACK PAIN SINCE YESTERDAY WHEN SHE DID HEAVY LIFTING AT WORK PUSHING BOXES UNLOADING A TRUCK
2
20
71
25YOM FELL OFF LADDER 8 9 FEET ONTO BACK AT WORK DX RIB CONTU FALL FROM LADDER
1
25
43
55YOF METAL SCRAP YARD JUMPED UP TO AVOID FLYING METAL PRESSURIZED CYLINDER FELL BACK ONTO BUTTOCKS ON CYLINDER DX CONTUSION
2
55
42
23YOF AT WORK DROPPED A PIECE OF GRANITE ONTO FOOT CONTUSION TO FOOT
2
23
62
25YM ACC STRUCK LT RING LITTLE FINGERS WHILE HAMMERING WORK LAC
1
25
62
51 Y O MALE INHALED BURNED PLASTIC FROM A FILTER FROM A LASER CUTTER AT WORK DX INHALATION INJURY
1
51
55
34YOM FRACTURED FOOT INJURED WHEN HE STEPPED WORK ON METAL PLATFORM AT WORK
1
34
60
X 59YOF WAS EXPOSED TO PROPANE LEAK AT WORK TODAY DX EXPOSURE TO GASEOUS SUBSTANCE
2
59
55
66YOM W OPEN BOOK PELVIC FX RIB FXS FACIAL LACS ANKLE LAC S P PEDESTRIAN RUN OVER BY HIS OWN VAN WAS NOT PLACED IN PARK
1
66
62
46YOF AT WORK AT NURSING HOME WHEELCHAIR RAN OVER FOOT CONTUSION TO FOOT
2
46
62
49YOF C O CHEST WALL PAIN AFTER STRETCHING AT WORK DX PAIN
2
49
73
27 YM WAS GIVING AN INJECTION AT WORK STUCK FINGER W NEEDLE DX FINGER PUNCTURE
1
27
55
31YF WKR IN ICECREAM SHOP WAS FESTIVAL SCOOPING ICECREAMX5 6HRS WHENLATER NOTICED WRIST PAIN TENDONITIS
2
31
71
25 YOM DX CONTUSION OF SCALP AND NECK S P PT GOT HIT BY DOOR ONHEAD AT WORK
1
25
62
22 YO M PT WAS HIT IN THE FACE AND HEAD WHILE AT WORK HEADACHE DX CHI
1
22
11
22 YOF STATES A FLOWER POT FELL ON HER HAND AT WORK AND NOW HAS PAIN NO WORK INFO DX RIGHT HAND PAIN
2
22
62
End of preview.