Posts by Cristhian Miguel • 207 points
10 posts
-
0
votes1
answer272
viewsQ: Error creating column in Pandas dataset
Hello, I am creating a project in python using Pandas and I want to create a column whose values are the column Closed - Open, but there is an error that I cannot solve. My code: import pandas as pd…
-
2
votes1
answer120
viewsQ: How to avoid calling the same function several times?
I have two scripts files, one to access a CSV file, turn each row into a dictionary and return a list of dictionaries (lines). My second script is a function to create a new column in the file (C1),…
-
0
votes1
answer455
viewsQ: Error: unhashable type: dict_keys, how to resolve?
I have a code that accesses a CSV file through a function. I created a second function to change the header name of the columns (change name) and not to have to call it several times by changing the…
-
1
votes2
answers247
viewsQ: Python module usage in Django
I’m starting with Django and Python now and I have a question that may sound silly: I can use python modules and functions - and others installed - usually in a Django application?
-
0
votes2
answers1353
viewsQ: No module named 'urls' in Django
I’m studying about URL division in Django and I can’t direct my main url file to high school. Tracking: Traceback (most recent call last): File…
-
-1
votes1
answer63
viewsQ: Payment processing for more than one API
I’m developing a website that searches for airline reservations through the Take off with. and search for hotels by the Booking.. My question is, can I unify the payment process? For example, the…
-
1
votes2
answers4804
viewsQ: Ping manipulation in Python
I’m creating a code that pings a list of ips. I managed to make him drip and give me the answer, but I can’t make the condition that I want, which is: SE ping ok: continuar os comandos SENÃO: faz…
pythonasked Cristhian Miguel 207 -
7
votes1
answer388
viewsQ: Paramiko Error Handling (Python)
Hello, I am mounting a script where the user will authenticate on a device, if everything goes well the code continues otherwise it shows an error message. I am using the Paramiko library to do the…
pythonasked Cristhian Miguel 207 -
5
votes1
answer5711
viewsQ: Checking and creating python directories
Hello, I am creating a code that should check if a folder exists, if it does not exist the code should create it and then proceed, otherwise it just goes with the flow. I tried with If and While but…
pythonasked Cristhian Miguel 207 -
3
votes2
answers507
viewsQ: Increment in Python list
Hello, I am creating a script to do automatic logins on equipment. I have created a list with several Ips that are the equipment I want to access. I want to create a loop, I tried with while and…
pythonasked Cristhian Miguel 207