• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mrocklin / dask / 2729
91%
master: 94%

Build:
Build:
LAST BUILD BRANCH: astype-passthrough
DEFAULT BRANCH: master
Ran 27 Mar 2019 05:10AM UTC
Jobs 2
Files 108
Run time 25min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2729

push

travis-ci

mrocklin
Give informative meta= warning

Often users get hung up on how exactly to create meta= objects when
using UDF functions like map/apply/...

They don't need to, we can figure it out for them, but sometimes they
like to silence these warnings.  Now we provide the correct result in
the warning message itself.

Originally raised in https://stackoverflow.com/questions/55363496/dask-dataframe-defining-meta-for-date-diff-in-groubpy

Example
-------

```python
In [1]: import dask

In [2]: df = dask.datasets.timeseries()

In [3]: df.apply(lambda x: x, axis=1)
/Users/mrocklin/workspace/dask/dask/dataframe/core.py:3144: UserWarning:
You did not provide metadata, so Dask is running your function on a small dataset to guess output types. It is possible that Dask will guess incorrectly.
To provide an explicit output types or to silence this message, please provide the `meta=` keyword, as described in the map or apply function that you are using..
  Before: .apply(func)
  After:  .apply(func, meta={'id': 'int64', 'name': 'object', 'x': 'float64', 'y': 'float64'})

  warnings.warn(meta_warning(meta))
Out[3]:
Dask DataFrame Structure:
                   id    name        x        y
npartitions=30
2000-01-01      int64  object  float64  float64
2000-01-02        ...     ...      ...      ...
...               ...     ...      ...      ...
2000-01-30        ...     ...      ...      ...
2000-01-31        ...     ...      ...      ...
Dask Name: apply, 60 tasks
```

12 of 12 new or added lines in 1 file covered. (100.0%)

17317 of 18989 relevant lines covered (91.19%)

1.82 hits per line

Jobs
ID Job ID Ran Files Coverage
3 2729.3 (PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true') 27 Mar 2019 05:10AM UTC 0
91.19
Travis Job 2729.3
7 2729.7 (PYTHON=3.6 NUMPY=1.14.1 PANDAS=0.22.0 TEST='true' LINT='true' COVERAGE='true' PARALLEL='false' XTRATESTARGS= TEST_IMPORTS='true') 27 Mar 2019 05:36AM UTC 0
91.19
Travis Job 2729.7
Source Files on build 2729
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2729
  • bc474305 on github
  • Next Build on mwta-warning (#2732)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc