Skip to content

ArrowInvalid: Column 10 named vocab expected length 1000 but got length 1 #4264

Closed Answered by mariosasko
talhaanwarch asked this question in General
Discussion options

You must be logged in to vote

Hi! The length of the new columns (1) doesn't match the length of the existing ones (1000; in the batched mode), so you should either drop the existing column names as follows:

vocabs=urdata.map(extract_all_chars,batched=True, remove_columns=urdata.column_names)

Or expand the vocab and all_text columns to match their size (1000).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by talhaanwarch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants