(df)
| 392 | |
| 393 | |
| 394 | def values(df): |
| 395 | values = df.values |
| 396 | # We currently only offer limited support for converting pandas extension |
| 397 | # dtypes to arrays. For now we simply convert to `object` dtype. |
| 398 | if is_extension_array_dtype(values): |
| 399 | values = values.astype(object) |
| 400 | return values |
| 401 | |
| 402 | |
| 403 | def sample(df, state, frac, replace): |