DOC: Adding cookbook data file, to avoid doc error
State: closed

The cookbook shows an example of a file generated from a C program, that then is opened with pandas (numpy). The file doesn't exist, and the example can't run.

Adding the file (generated with the cookbook code shown in the example), and updating the path, so it's loaded form the right location.

https://pandas-docs.github.io/pandas-docs-travis/cookbook.html#binary-files




Labels:
name: Docs

Comments:
Do we need that example to run? I'd like to avoid including binary data files if possible (even small ones).

Alternatively, can we say "This generates a file roughly equivalent to np.random...", write that to a file, and read that in instead?
Sure, I'll see what I can do.

Out of curiosity, why do you prefer to avoid binary files?

Don't care much about this example (it'd make things easier to simply have the file, but not a big deal). But I think would be nice to have parquet files for the examples.
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=h1) Report
> Merging [#24442](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/8b4b38fd7995cb59b0595f2d06cb4b984b5886a9?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/24442/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24442   +/-   ##
=======================================
  Coverage    92.3%    92.3%           
=======================================
  Files         163      163           
  Lines       51977    51977           
=======================================
  Hits        47979    47979           
  Misses       3998     3998
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.71% <ø> (ø)` | :arrow_up: |
| #single | `42.99% <ø> (ø)` | :arrow_up: |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=footer). Last update [8b4b38f...d4ec433](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=h1) Report
> Merging [#24442](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/8b4b38fd7995cb59b0595f2d06cb4b984b5886a9?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/24442/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #24442   +/-   ##
=======================================
  Coverage    92.3%    92.3%           
=======================================
  Files         163      163           
  Lines       51977    51977           
=======================================
  Hits        47979    47979           
  Misses       3998     3998
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.71% <ø> (ø)` | :arrow_up: |
| #single | `42.99% <ø> (ø)` | :arrow_up: |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=footer). Last update [8b4b38f...d4ec433](https://codecov.io/gh/pandas-dev/pandas/pull/24442?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

File size and hard to inspect diffs.

For parquet examples, we should be able to write them as part of the
example.

On Wed, Dec 26, 2018 at 3:16 PM Marc Garcia <notifications@github.com>
wrote:

> Sure, I'll see what I can do.
>
> Out of curiosity, why do you prefer to avoid binary files?
>
> Don't care much about this example (it'd make things easier to simply have
> the file, but not a big deal). But I think would be nice to have parquet
> files for the examples.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/pandas-dev/pandas/pull/24442#issuecomment-450027441>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABQHInpFfXZPkpi6FaJxxcahMk8Y-JXdks5u8-cmgaJpZM4ZiE0d>
> .
>