I’m trying to change the date format of a column in a CSV. I know there are easier ways to do this, but the goal here is to get the threads working properly. I work with Spyder and Python 3.8. My code works as follows: I create a thread class with a function to change the date format I split
Tag: spyder
Restarting kernel, ipython console in spyder
I am having this problem in spyder where, after I run my code and exit the gui.program, the kernel needs to manually be restarted after every time my code is ran, I sometimes even have to shut down spyder as kernel crashes. I am wondering if there is a way for the kernel to automatically be reset after closing the
Pickle data not loading
Here I the data I try to save as a “pickle file” import pandas as pd import pickle as pkl df_1 = pd.DataFrame({‘TIME’: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], ‘speed’: [2, 3, 7, 6, 13, 24, 31, 64, …
pipx-installed Spyder doesn’t recognize Poetry-installed pandas only when trying to view DataFrame in Variable Explorer
I’m using Python 3.8.5. My OS is Kubuntu 18.04. I installed Spyder and Poetry via pipx: Within my project folder, I installed pandas and spyder-kernels as dependencies: I can open Spyder just fine: In Spyder -> Preferences -> Python interpreter, I added the path to the Python interpreter for the project’s Poetry environment. I can import pandas in Spyder, like
Missing dependancies of rtree
I am currently using Spyder for Python, and I have this error message when I open the program: Error: You have missing dependencies! rtree>= 0.8.3: None (NOK) Please install them to avoid this message. Note: Spyder could work without some of these dependencies, however to have a smooth experience, we strongly recommend. I tried pip install rtree and got: Please
Assigning same value to a variable yields a different result
Whilst coding a game in python I was having a problem with a portion of the code. During some debugging I ran into something really weird which I cannot explain. The first code which I show prints a certain value to the array ‘polygon’. The second code is the same but at the end I […]
How to parse arguments in python (spyder)?
I am following this tutorial and trying to run the below part of the script. I am using python 3.7 and spyder 3.3.4. I have tried going to Run > Configuration per file and entering the arguments as advised by this post and and this post. command line options: path1, path2, path3, path4 I filled out the appropriate paths for
AttributeError when reading a pickle file
I get the following error when I’m reading my .pkl files on spyder (python 3.6.5): IN: with open(file, “rb”) as f: data = pickle.load(f) Traceback (most recent call last): File “<...
RuntimeError: ‘path’ must be None or a list, not on python-telegram-bot
I want to develop a bot in telegram using spyder: from telegram.ext import Updater bot = telegram.Bot(token=’***’) I get the above error.
After starting spyder: ImportError: cannot import name ‘quick_guide’
When I start spyder the internal console pops up and gives the following “traceback”: >>> WARNING:traitlets:kernel died: 6.001837253570557 Traceback (most recent call last): File “C:……