-
Notifications
You must be signed in to change notification settings - Fork 21
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
enhancement: workbook_iterate and workbook_flatten #28
Comments
@djay Thank you, that's great work! I'm very interested in
Do you think you can provide a PR with a sample usage for one or both of these feature ? |
yeah maybe the top5leagues one with a row per player. Doesn't show off the merging of an embedded graph inside the workbook but chances are the usecase for that one is only going to be timeseries. |
@bertrandmartel maybe workbook_flatten would be more useful if it worked more automatically to try to return a single dataframe from one workbook. Then you can rename columns yourself after to clean it up.
However for that to work it needs to know what the index is for every table inside a workbook and assume they are the same index. And also that single value tables will have index value passed in. Im not yet sure where in the information is of what the index is for an internal plot. |
@bertrandmartel actually in that example it would never work for pivoting an internal table/plot. It wouldn't know which column to pivot on. Maybe the way to do that more simply would be have an exclude param on flatten and the user to do that pivot manually and combine themselves. In addition the code I had dealt with combining internal plots and single values that represented the same data (but potentially different dates). So that would have to be done manually. So the example would be
I'm not sure if the end result saves more work or not... |
@bertrandmartel inclusion of I am presently unable to use Python (due system restrictions) but it does seem like your library would be very helpful for getting scraped data into Microsoft Power BI as it supports running of Python scripts where a dataframe is the result. For the time being, many of your posts Stackoverflow have helped me to get a solution working in M (Power Query). Though it is much less advanced it does the job for now. Thanks for you work. |
I wrote two higher level functions that could be useful to others if included in your library?
The code and examples of how I'm using it
Used in combination you can reliably scrape lots of data with not too much code, at least in the case of similar to what I've used it for?
The text was updated successfully, but these errors were encountered: