Return the types of the columns as a dictionary. Example: >>> import pathway as pw >>> t1 = pw.debug.table_from_markdown(''' ... age | owner | pet ... 10 | Alice | dog ... 9 | Bob | dog ... 8 | Alice | cat ... 7 | Bo
(self)
| 3117 | return self, {} |
| 3118 | |
| 3119 | def typehints(self) -> Mapping[str, Any]: |
| 3120 | """ |
| 3121 | Return the types of the columns as a dictionary. |
| 3122 | |
| 3123 | Example: |
| 3124 | |
| 3125 | >>> import pathway as pw |
| 3126 | >>> t1 = pw.debug.table_from_markdown(''' |
| 3127 | ... age | owner | pet |
| 3128 | ... 10 | Alice | dog |
| 3129 | ... 9 | Bob | dog |
| 3130 | ... 8 | Alice | cat |
| 3131 | ... 7 | Bob | dog |
| 3132 | ... ''') |
| 3133 | >>> t1.typehints() |
| 3134 | mappingproxy({'age': <class 'int'>, 'owner': <class 'str'>, 'pet': <class 'str'>}) |
| 3135 | """ |
| 3136 | return self.schema.typehints() |
| 3137 | |
| 3138 | def eval_type(self, expression: expr.ColumnExpression) -> dt.DType: |
| 3139 | return ( |
no outgoing calls