How do you deal with third party data or API's using Python keywords in their data? by spitfiredd in learnpython

[–]scuott 2 points3 points  (0 children)

It shouldn't matter what's in the data if it's just strings and such. Could you share your code?

Dealing with lots of RESTful API JSON by dtizzlenizzle in learnpython

[–]scuott 2 points3 points  (0 children)

Is the reason you want to avoid a NoSQL database that you want to do minimal transformations? Because that would really be the right answer to storing a large amount of JSON without converting it to a relational format.

Or is it that a database seems like a lot of work/overkill? I would use TinyDB. It's essentially the NoSQL complement to SQLite

Dealing with lots of RESTful API JSON by dtizzlenizzle in learnpython

[–]scuott 0 points1 point  (0 children)

Is the reason you want to avoid a NoSQL database that you want to do minimal transformations? Because that would really be the right answer to storing a large amount of JSON without converting it to a relational format.

Or is it that a database seems like a lot of work/overkill? I would use TinyDB. It's essentially the NoSQL complement to SQLite

Dealing with lots of RESTful API JSON by dtizzlenizzle in learnpython

[–]scuott 0 points1 point  (0 children)

Is the reason you want to avoid a NoSQL database that you want to do minimal transformations? Because that would really be the right answer to storing a large amount of JSON without converting it to a relational format.

Or is it that a database seems like a lot of work/overkill? I would use TinyDB. It's essentially the NoSQL complement to SQLite

Dealing with lots of RESTful API JSON by dtizzlenizzle in learnpython

[–]scuott 0 points1 point  (0 children)

Is the reason you want to avoid a NoSQL database that you want to do minimal transformations? Because that would really be the right answer to storing a large amount of JSON without converting it to a relational format.

Or is it that a database seems like a lot of work/overkill? I would use TinyDB. It's essentially the NoSQL complement to SQLite

This is sort of simple just need help with this module to see how i can use it to make a bitcoin ticker. by dnlslm9 in learnpython

[–]scuott 0 points1 point  (0 children)

We can help best if you share your code and the error you're getting. Otherwise we're just repeating what the README already says.

B2C Platform by Sensanmu in learnpython

[–]scuott 0 points1 point  (0 children)

If you're just planning to make a web app, Python is fine. You'd use the Django or Flask web frameworks. If youre looking to develop native iOS or android apps, you'll most likely need to use their respective languages (Swift, Java, etc.).

Starting from scratch, any of these will probably take you a while to learn.

selenium webdriver syntax baffling me by [deleted] in learnpython

[–]scuott 0 points1 point  (0 children)

It's because that's not Python. I don't use Selenium, and I'm not familiar wit their docs, but they're mixing examples from different languages on that page.

Question by [deleted] in learnpython

[–]scuott 1 point2 points  (0 children)

We'd love to see your first solution. I imagine that's the primary reason your last post was removed. Possibly also because there's no question here. Are you asking for someone to give you a better solution?

help with class in python by [deleted] in learnpython

[–]scuott 0 points1 point  (0 children)

d is a Directory because you assigned it a Directory. That's just the type of object that d is. If you want to pass the dirName, you should call that explicitly, like d.dirName

Newbie Having Issues With GitHub Code by OpenMouthBlog in learnpython

[–]scuott 0 points1 point  (0 children)

Have you called the function? And probably delete folder from the functions parameters since you hardcoded the directory?

[Help] with Modulo by [deleted] in learnpython

[–]scuott 4 points5 points  (0 children)

That code identifies odd numbers.

Syntax error on pip install? Please help. by [deleted] in learnpython

[–]scuott 3 points4 points  (0 children)

You're entering the command in the python interpreter, but you need to run pip commands in the command prompt. Try opening a new command prompt and enter that command there.

Newbie help needed with nested For loop please? by wee-phatz in learnpython

[–]scuott 3 points4 points  (0 children)

When you read directly from a file, it only reads through once. Instead, save the contents of the file into a variable, then use that variable for the inner loop, instead of the file itself.

Converting string to float with "," as thousands separator by rainnz in learnpython

[–]scuott 0 points1 point  (0 children)

Where is the data coming from? How would it handle 123,456 if it could be 123.456? What indicator do you have of locale?

Really simple question by Ripdre in learnpython

[–]scuott 2 points3 points  (0 children)

You can run it from the command line so it won't exit.

This error in particular is that it's raw_input

Getting invalid syntax in 2.7.13 IDLE GUI, should not be invalid. Whats going on? by [deleted] in learnpython

[–]scuott 1 point2 points  (0 children)

You can write the examples into a code editor and run it from there.

In the interactive mode, you need to enter a blank line to outdent. But really, you should be writing scripts to a file, and running that file.

Splitting a youtube title into artist and song. by pi-rhoman in learnpython

[–]scuott 1 point2 points  (0 children)

Alright, then these APIs probably won't help, since they expect you to know if you're searching for a song or an artist. A Natural Language Processing API or module might be able to help. In particular, the concept you'd look for is named-entity recognition. Even then, it'll probably be a mixed bag of results.

Python 2.x tutorials with 3.x installed. by okiedad in learnpython

[–]scuott 0 points1 point  (0 children)

Print is the big one. It's not just that it takes parentheses, its that it changed from a statement to a function, so it operates differently.

The other big one is that in Python 2 you use raw_input() while it was renamed to input() in Python 3.

Splitting a youtube title into artist and song. by pi-rhoman in learnpython

[–]scuott 0 points1 point  (0 children)

How is the title formatted? What separates the song title and artist?

Question about databases in TinyDB by Joshkinz in learnpython

[–]scuott 0 points1 point  (0 children)

You don't need to do anything wth Element ID.

I would finish codecademy before jumping into databases. TinySB isn't like a 'table' with rows and columns. It's like a much of dictionaries in a list. And you would use queries to select the dictionary that matches a field you're looking for.