I'm trying to create software that simulates being the linux terminal (bash)
#-*- coding: utf-8 -*-
import subprocess
import os
def clear():
subprocess.call(["cmd.exe","/c","cls"])
def ls():
dirlist = os.listdir('.')
for file in...
I'm starting to use python on mac and I have a problem that I can not solve.
I have installed the latest version of python 3.6.4 in macOS High Sierra.
In sublime text I have installed the sublimeREPL package, with which I use the option: "...
I have a program that reads me file data excel and csv and writes them in txt .
The problem I have is that one of the columns that he reads are decimals and when writing them he puts them all as decimal. The issue is that I j...
I'm trying to make an .exe with a .py file. I read the tutorial link and it worked perfectly. My problem is when instead of making a code as easy as the tutorial print "Hello world" I place functions such as:
def main():
a = 14...
I'm looking to access all the values in the ddomain field in my list and create another new list with those values. I think that with a for item in your_list it could be done but I can not find the form.
with open("Top20_Media_10...
With the following code I want you to show me a couple of other things. I want you to show me on the x axis from 0 to 23 that are the amount of data per day that there is and only shows me now 0,5,10,15 and 20. On the other hand I want that in e...
I am working with Python and MySQL in a Tkinter application. I'm trying to do a search filter to only show me the entries in my table that correspond to what I entered with the keyboard but I do not know how to set it in the SQL statement.
Th...
I have the following excel file:
connection A auto
connection A camioneta
connection A puerta
connection B camioneta
connection B puerta
connection B capo
and I'm looking to put together a diction in python like this:
Li...
How to create a DataFrame from an array of non-indexed listings by indexing it over the arrays?
For example
[[{'count': 6L, 'item_id': 11313}, {'count': 6L, 'item_id': 11348},
{'count': 1L, 'item_id': 11338}, ],[{'count': 4L, 'item_id': 113...