Fix Python – Visual Studio Code: How debug Python script with arguments

I’m using Visual Studio Code in order to debug a Python script.
Following this guide, I set up the argument in the launch.json file:

But when I press on Debug, it says that my argument is not recognized and Visual Studio Code says:

error: unrecognized arguments

As Visual Studio Code is using PowerShell, let’s execute the same file with the sam….

Fix Python – Python Linked List

What’s the easiest way to use a linked list in python? In scheme, a linked list is defined simply by ‘(1 2 3 4 5). Python’s lists, [1, 2, 3, 4, 5], and tuples, (1, 2, 3, 4, 5), are not, in fact, linked lists, and linked lists have some nice properties such as constant-time concatenation, and being able to reference separate parts of them. Make the….

Fix Python – ImportError: No module named dateutil.parser

I am receiving the following error when importing pandas in a Python program
monas-mbp:book mona$ sudo pip install python-dateutil
Requirement already satisfied (use –upgrade to upgrade): python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Cleaning up…
monas-mbp:book mona$ python
No module named d….

Fix Python – Save Dataframe to csv directly to s3 Python

I have a pandas DataFrame that I want to upload to a new CSV file. The problem is that I don’t want to save the file locally before transferring it to s3. Is there any method like to_csv for writing the dataframe to s3 directly? I am using boto3.
Here is what I have so far:
import boto3
s3 = boto3.client(‘s3′, aws_access_key_id=’key’, aws_secret_a….