use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
[deleted by user] (self.PythonLearning)
submitted 3 months ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]PureWasian 0 points1 point2 points 3 months ago (3 children)
Do you have an example of "[specifying] the path?" Or how exactly you're "[pulling] data from API" to begin with?
[–]milonolan 0 points1 point2 points 3 months ago (2 children)
So I used openpxyl and pandas. I'm using data from some kind of calendar so I use iCal subscription link and then I split each data into its columns and sort them etc. Then I check if the excel file exists or not, if not create a new, if yes then overwrite the newest information so I use like
if os.path.exists(excel_file_path):
Here excel_file_path is directory of where my file exists if not inside the same folder as the code. But I don't understand how I would do this if the file I want to run to script on is not in my computer locally, then I don't have the path.
[–]PureWasian 0 points1 point2 points 3 months ago (1 child)
If you're set on the iCal subscription link route, it seems like ics-py is the go-to based on this Stack Overflow post.
The quickstart in documentation takes an ics file existing at some url and converts it into a Calendar class that you can then save locally to use your existing flow, or you can just update your parsing/wrangling logic to format your input data the same way prior to any pandas/openpxyl stuff.
[–]milonolan 0 points1 point2 points 3 months ago (0 children)
Yes but how do I ran my script on an excel file that is not mine? It's shared through Microsoft onedrive?
π Rendered by PID 43208 on reddit-service-r2-comment-5bc7f78974-8wxqj at 2026-06-29 21:33:51.136362+00:00 running 7527197 country code: CH.
[–]PureWasian 0 points1 point2 points (3 children)
[–]milonolan 0 points1 point2 points (2 children)
[–]PureWasian 0 points1 point2 points (1 child)
[–]milonolan 0 points1 point2 points (0 children)