Skip to content

Commit

Permalink
accept boolean type in dataframe column categories
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed Jan 7, 2025
1 parent 784fd8b commit 7972b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export type DataFrameNumberColumn = z.infer<typeof DataFrameNumberColumn>
export const DataFrameStringColumn = z.object({
name: z.union([z.string(), z.number()]),
type: NumpyStringTypes.or(NumpyJsonTypes),
categories: z.array(z.string().or(z.number())).optional(),
categories: z.array(z.string().or(z.number()).or(z.boolean())).optional(),
})
export type DataFrameStringColumn = z.infer<typeof DataFrameStringColumn>

Expand Down

0 comments on commit 7972b55

Please sign in to comment.