Skip to content

Tag: python

Automatically upload images on vinted

I’ve been stuck on a task for a few days. I can’t load images automatically on the vinted image browser. I tried running the following code: The problem is that the paths of the recovered images end up on the terminal where the script is run, while they should be set in the upload window. It almos…

DataFrame from list of string dicts

So I have a list where each entry looks something like this: I am trying to get a dataframe that looks like this But I’m having trouble converting the format into something that can be read into a DataFrame. I know that pandas should automatically convert dicts into dataframes, but since my list element…

Alternating column values

I am working on a project where my dataset looks like bellow: Origin Destination Num_Trips Hamburg Frankfurt 2 Hamburg Cologne 1 Cologne Hamburg 3 Frankfurt Hamburg 5 I am interested only on one way either “Hamburg – Frankfurt” or “Frankfurt – Hamburg” and add them as numbe…

Django multiple params link

I have this urls.py first path with one args works good with reverse func in some file how i can do this -> from …/calendar/2020-01-01 to …/calendar/2020-01-01/100 in template without using context and 2 args like url ” ” date arg2 something like <a href = “{% url ‘sc…