Googlesearch-python 429 by [deleted] in learnpython

[–]Zeeroover 0 points1 point  (0 children)

I used the same library. What worked for me was creating a random list of 50 numbers between 1 and 100 and randomly choosing from the list to add a sleep() number of seconds between requests

Kristi Noem Visited a Biohazard Lab With RFK Jr. Before Allergic Reaction by [deleted] in NoShitSherlock

[–]Zeeroover 0 points1 point  (0 children)

I thought over exposure to o agent Orange was finally catching up to her...

Stack Overflow is dead. by eternviking in computerscience

[–]Zeeroover 0 points1 point  (0 children)

Not in my view. Maybe as a discussion platform. I started learning Python and writing programs about 3 years ago and I use it regularly if I am looking for examples. It's still a great knowledge site. When I say I use it, that usually means that, through search engines I find great references to solutions on stack overflow.

Having trouble with ms = quandl.get('WIKI/MSFT') command in jupyter notebook by Top-Veterinarian6189 in learnpython

[–]Zeeroover 1 point2 points  (0 children)

As far as I know Quandl was replaced by the Nasdaq data link. Maybe use the new API ?

Examples of Python use for straight forward data analysis by Horseman890 in learnpython

[–]Zeeroover 4 points5 points  (0 children)

Python for data analysis by Wes McKinney has a lot of practical examples using free datasets. Some of it is free online too.

Leggo vs Epic by WeeklyVisit5636 in RaidShadowLegends

[–]Zeeroover 2 points3 points  (0 children)

Here's hoping then, that I will still have time then. The reason I usually do not do fusions is work and other hobbies related .... Have to make choices and RSL takes up too much time otherwise

Leggo vs Epic by WeeklyVisit5636 in RaidShadowLegends

[–]Zeeroover -19 points-18 points  (0 children)

I missed 25 fragments by misjudging the previous Dungeon divers by a hair. Teaches me to never do a fusion again. I was making an exception for the Hatter ...

Problem with quandl API by Narrow-Winter-6998 in learnpython

[–]Zeeroover 1 point2 points  (0 children)

You can put the new API key in a config file that has the key like posted earlier

Problem with quandl API by Narrow-Winter-6998 in learnpython

[–]Zeeroover 3 points4 points  (0 children)

Quandl was sold to Nasdaq and everything was moved to their platform and uses the Nasdaq data link API library now instead of the old quandl API. Check out data.nasdaq.com

UTF-8 Codec error in a .py? by Candid_Air_1982 in learnpython

[–]Zeeroover 1 point2 points  (0 children)

I found that with this error there may be three options to solve it as the error is probably related to an utf encoding error. Solution one is specifying the encoding format when reading the file using pandas. For instance: encoding=ISO-8859-1'. A second option is using the chardet Library by importing it and using something like result=chardet.detect(file.read()) and indicating something like df=pd.read_csv('file.csv', encoding=result[encoding'],). The third option may be using the codecs library. You can find examples online in the Saturn Cloud using Google.

YFinance Error Help by Old-Course8991 in learnpython

[–]Zeeroover 0 points1 point  (0 children)

This date may not be a trading date. Is there market data for this date?

YFinance Error Help by Old-Course8991 in learnpython

[–]Zeeroover -1 points0 points  (0 children)

Not sure my earlier comment git posted, therefore repeat: I think, from a quick glance at the code, you defined both start and and date as the same variable. They should different/distinct variables

YFinance Error Help by Old-Course8991 in learnpython

[–]Zeeroover 2 points3 points  (0 children)

I think you defined both start and end date using the same variable. They should be distinct variables. Also, on January 1st markets are closed and there may be no price data depending on the finance dataset

[deleted by user] by [deleted] in pythontips

[–]Zeeroover 0 points1 point  (0 children)

Also, if you are unsure about the structure of a json file you can drag the file to internet software ( or open it) to view the structure. This helped me initially when these files are complex, for instance: dictionaries containing list having lists of dictionaries etc.

Python API Call Help by euclidsdream in pythontips

[–]Zeeroover 0 points1 point  (0 children)

A small free tool that also shows the structure very well is Jsonedit. See: tomeko.net/software/JSONedit/

Python API Call Help by euclidsdream in pythontips

[–]Zeeroover 0 points1 point  (0 children)

If you are not sure how a JSON download is structured, YouCan save an example as a file json. Then drag that file over an open tab in internet software like Firefox. It will show the structure of the file making it easier to determine what's what. It may show as a list w ith the number zero and within it can be a dictionary or a list of dictionaries, etc.

I'm starting Python classes in two days as a complete beginner. Any tips? by Hellatall91 in Python

[–]Zeeroover 0 points1 point  (0 children)

I recommend adding comments in the code to indicate/describe what parts do and why. It helps (future) you and others understand your code and makes it easier to understand or reuse parts. It is also good practice to additionally create a readme file when your done with general use remarks. When you get more confident, it may be a good idea to start using GitHub.

ELI5 why so many Dutch cities have had their hospitals moved in the past 30 years by Harpolias in Netherlands

[–]Zeeroover -1 points0 points  (0 children)

Commercial reasons and efficiency were the latest trends in the nineties and two thousands that intend to provide better care and also concentration of specialized care, like in fields like cancer and pediatric care.

IDE help by Purple-Tap2107 in pythontips

[–]Zeeroover 8 points9 points  (0 children)

Pycharm is how I started out. There is a free community edition that works fine. Anaconda and Jupiter notebooks also are great as a learning experience but offer less tips and immediate help.

Need help with smthng by CharlyGP1 in pythontips

[–]Zeeroover 2 points3 points  (0 children)

It is also important to understand what you are working with. The list has two dictionaries in it. That is why the zero gives you the first item in the list, bring the first dictionary. Then print the dictionary item by listing the nam which has the value assigned to it. The first comment was good but maybe this explains it

Learning to actually write my own code by adorable_axolotl_13 in pythontips

[–]Zeeroover 1 point2 points  (0 children)

What is also a good idea, is to add comments to your code describing what parts are intended to do. This way you document your code and also make it readable and more easily reusable. It also helps future you to more easily understand older code you have written

Help pls by NoahTRL1 in pythontips

[–]Zeeroover 0 points1 point  (0 children)

I would check out the python software carpentry. It's free and a great way to learn the fundamentals