Skip to content

Add file-like object to docs for Feather #17492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2017
Merged

Add file-like object to docs for Feather #17492

merged 1 commit into from
Sep 11, 2017

Conversation

rvernica
Copy link
Contributor

read_feather and to_feather accept file-like object. For example, something like this works:

# python -uc "import pandas, sys; print(pandas.read_feather(sys.stdin))" < a.feather 
    id
0  1.0
1  2.0
2  3.0
3  NaN
4  5.0
5  6.0
6  7.0
7  8.0
# python -uc "import pandas, sys; pandas.to_feather(pandas.read_feather(sys.stdin), sys.stdout)" < a.feather > b.feather
  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

`read_feather` and `to_feather` accept file-like object. For example, something like this works:
```
# python -uc "import pandas, sys; print(pandas.read_feather(sys.stdin))" < a.feather 
    id
0  1.0
1  2.0
2  3.0
3  NaN
4  5.0
5  6.0
6  7.0
7  8.0
# python -uc "import pandas, sys; pandas.to_feather(pandas.read_feather(sys.stdin), sys.stdout)" < a.feather > b.feather
```
@codecov
Copy link

codecov bot commented Sep 11, 2017

Codecov Report

Merging #17492 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17492      +/-   ##
==========================================
- Coverage   91.15%   91.13%   -0.02%     
==========================================
  Files         163      163              
  Lines       49534    49534              
==========================================
- Hits        45153    45144       -9     
- Misses       4381     4390       +9
Flag Coverage Δ
#multiple 88.92% <ø> (ø) ⬆️
#single 40.22% <ø> (-0.07%) ⬇️
Impacted Files Coverage Δ
pandas/io/feather_format.py 85.71% <ø> (ø) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.72% <0%> (-0.1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 42ed4f1...9d6dbf0. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 11, 2017

Codecov Report

Merging #17492 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17492      +/-   ##
==========================================
- Coverage   91.15%   91.13%   -0.02%     
==========================================
  Files         163      163              
  Lines       49534    49534              
==========================================
- Hits        45153    45144       -9     
- Misses       4381     4390       +9
Flag Coverage Δ
#multiple 88.92% <ø> (ø) ⬆️
#single 40.22% <ø> (-0.07%) ⬇️
Impacted Files Coverage Δ
pandas/io/feather_format.py 85.71% <ø> (ø) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.72% <0%> (-0.1%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 42ed4f1...9d6dbf0. Read the comment docs.

@gfyoung gfyoung added IO Data IO issues that don't fit into a more specific label Docs labels Sep 11, 2017
@jreback jreback added this to the 0.21.0 milestone Sep 11, 2017
@jreback
Copy link
Contributor

jreback commented Sep 11, 2017

thanks

@jreback jreback merged commit f3b6d1f into pandas-dev:master Sep 11, 2017
@rvernica rvernica deleted the patch-1 branch September 11, 2017 18:35
alanbato pushed a commit to alanbato/pandas that referenced this pull request Nov 10, 2017
No-Stream pushed a commit to No-Stream/pandas that referenced this pull request Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants