Skip to content

Tag: python

Calling an R package function with rpy2

I’m new to R and need to pass string data from a pandas dataframe to a function in R. This function accepts nested lists of strings, such as: The code I tried two approaches: 1) That yielded KeyError: <class ‘list’> error message. 2) That yielded the error message: I checked if d is a …

how to use external scripts from main python file

so have 2 python project file one is qr scanner and other is youtube downloader. adn both are in different python file so i wanna create an main python file where i will list the both project name like: Qr Scanner YouTube Downloader Enter You Option: So when the user input their option. the script will gonna …

How to access Python Variables from parent Tkinter

I have a Tkinter App and currently I am trying to split the code from each tab to be on each tab. I can pass the string as a parameter into the Tab but is it possible to access the parent variables from the child ttk.Frame ? The actual code has more things. Answer The easiest solution is to pass

AttributeError when applying map() for formatting

Hoping someone can advise on the AttributeError I’m receiving, as I’m not sure what is wrong with the way my code is written. I’ve seen other posts dealing with “‘DataFrame’ object has no attribute”, but it wasn’t applicable to this scenario. Using Python’…