Skip to content

ENH: pandas read_* wildcard #15904

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

Closed
wxl3322335 opened this issue Apr 5, 2017 · 7 comments · Fixed by #16166
Closed

ENH: pandas read_* wildcard #15904

wxl3322335 opened this issue Apr 5, 2017 · 7 comments · Fixed by #16166
Labels

Comments

@wxl3322335
Copy link

wxl3322335 commented Apr 5, 2017

hi every one,i want to use in pandas like this
df = pd.read_excel('*order list*.xlsx')

could panda wildcard?
thank you!

@TomAugspurger
Copy link
Contributor

There's a link in our cookbook, which links to http://stackoverflow.com/questions/25210819/speeding-up-data-import-function-pandas-and-appending-to-dataframe/25210900#25210900

@wxl3322335 would you want to include the example from StackOverflow in the actual documentation, like some of the other examples?

@jreback jreback added this to the Next Major Release milestone Apr 5, 2017
@jreback jreback changed the title pandas read csv wildcard ENH: pandas read_* wildcard Apr 5, 2017
@wxl3322335
Copy link
Author

HI mr TomAugspurger :
thanks for your help,but i am a new member here,i dont know how to do,i am sorry!

@wxl3322335
Copy link
Author

@TomAugspurger could you tell how to use wildcard in reading csv ?
thank you very much!

@wxl3322335
Copy link
Author

@jreback thanks for your help!

@dwkenefick
Copy link
Contributor

I can take a crack at this - quick question: Is the issue that all read_* functions should support globs (based on the ENH in the title) or is it that the docs should include an example of how to read multiple files (Based on the Docs label and comments)?

Happy to help either way, but I wanted to make sure I'm on the right page.

@jreback
Copy link
Contributor

jreback commented Apr 24, 2017

this is just doc examples. We don't directly support globs in paths. I think we might want to try to detect a glob and raise, we don't support it, so it shouldn't pass thru.

@TomAugspurger

@TomAugspurger
Copy link
Contributor

@dwkenefick in doc/source/cookbook.rst there's a link to the stackoverflow answer http://stackoverflow.com/questions/25210819/speeding-up-data-import-function-pandas-and-appending-to-dataframe/25210900#25210900

Basically, we want include an example like that in our documentation. Ideally it would be runnable.

Then in the main IO docs in io.rst you can add a little section about reading multiple files and link to the example in cookbook.rst.

dwkenefick added a commit to dwkenefick/pandas that referenced this issue Apr 28, 2017
dwkenefick added a commit to dwkenefick/pandas that referenced this issue Apr 28, 2017
dwkenefick added a commit to dwkenefick/pandas that referenced this issue Apr 28, 2017
dwkenefick added a commit to dwkenefick/pandas that referenced this issue Apr 29, 2017
dwkenefick added a commit to dwkenefick/pandas that referenced this issue Apr 29, 2017
TomAugspurger pushed a commit that referenced this issue Apr 30, 2017
* DOC: pandas read_* wildcard #15904

Added example in cookbook about reading multiple files into a dataframe.
cbertinato pushed a commit to cbertinato/pandas that referenced this issue May 1, 2017
* DOC: pandas read_* wildcard pandas-dev#15904

Added example in cookbook about reading multiple files into a dataframe.
pcluo pushed a commit to pcluo/pandas that referenced this issue May 22, 2017
* DOC: pandas read_* wildcard pandas-dev#15904

Added example in cookbook about reading multiple files into a dataframe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants