blaze / blaze/datashape

Function to determine the number of bytes in a datashape.

Open
#42 1 comment 0 reactions 0 assignees View on GitHub
easy enhancement
Dominant language
Python
Stars
189
Forks
62
PR merge metrics
No merged PRs in 30d

Description

It would be nice to know how large our data is without looking at the data itself

```
>>> nbytes('2 * 2 * int64')
32
```

Generally assume the minimum storage required

```
>>> nbytes('{x: int32, y: int32}')
8
```

Accept that this is a hard task to do in general

```
>>> nbytes('string')
TypeError(...)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.