query stringlengths 12 150 | positive list | negative list |
|---|---|---|
Why can't pass *args and **kwargs in __init__ of a child class | [
"Use of *args and **kwargs"
] | [
"SyntaxError using *args and **kwargs in an __init__ in Python",
"How to pass through Python args and kwargs?",
"Python **kwargs in parent and child constructor",
"Python convert args to kwargs",
"lambda *args, **kwargs: None",
"How to pass kwargs further?",
"Python pass string to class using *args in _... |
Pass multiple arguments in form of tuple | [
"How to pass a tuple to a python function"
] | [
"When I create an object, what do I pass as the arguments?",
"How to pass a function result to a tuple?",
"Turn a list into a tuple of arguments",
"Pass string as tuple as arguments python",
"Using a tuple as function arguments",
"Multiple iterations over different arguments in a tuple (python)",
"How t... |
How to install python package in a specific directory | [
"Install a Python package into a different directory using pip?"
] | [
"Error using pip install, I can't install any package",
"python install package as sub-package of another package",
"easy install can not install library package",
"How to install module and package in python",
"python package import from different directory",
"Which package to install based only on impor... |
pip: Any workaround to avoid --allow-external? | [
"Security considerations of `pip --allow-external`"
] | [
"How to order an external list in python",
"Getting error while using pip",
"How to get PIP for python",
"upgade python version using pip",
"workaround for an error-looking rouding",
"how to run pip for python 3 and python 2",
"Python - workaround with sets",
"what is pip in python",
"pip Not Workin... |
Efficient way to store relation values in NDB | [
"ndb many to many, retrieve list of one of the relation"
] | [
"How can I get the ndb.Model when my only input is an ndb.Query?",
"Python: Loop over NDB entity model",
"App Engine NDB Simple Create Read Update",
"Will ndb work with entities that were created without using ndb on GAE?",
"I'm trying to use a @classmethod with filter() in ndb and receiving a error. NDB ne... |
Decorating method (class methods overloading) | [
"Decorating a method"
] | [
"Decorating a function with a method (with arbitrary arguments)",
"Python - Decorating a Class Method to test Class Attributes",
"how to know if I'm decorating a method",
"Python decorating functions before call",
"Decorating a class method after @property",
"decorating a function that yields",
"decorat... |
Install libxml2 and associated python bindings - Windows | [
"Installing lxml, libxml2, libxslt on Windows 8.1"
] | [
"Libxml2 installation onto Mac",
"python libXML2 remove Item",
"Python libxml2: querying xml using xpath",
"ImportError: No module named libxml2",
"Install librets on OS X 10.8 with Python bindings",
"Problems installing libxml2 on Mac OS X",
"Python libxml2 XPath/Namespace Help",
"'No module named li... |
Matplotlib - Using 1-D arrays in streamplot() | [
"How to use streamplot function when 1D data of x-coordinate, y-coordinate, x-velocity and y-velocity are available?"
] | [
"Number of arrowheads on matplotlib streamplot",
"matplotlib: Plot numpy arrays with None as values",
"Matplotlib: How to increase colormap/linewidth quality in streamplot?",
"loop through numpy arrays, plot all arrays to single figure (matplotlib)",
"Showing subplot colorbar for a matplotlib streamplot",
... |
How to install snappy C libraries on Windows 10 for use with python-snappy in Anaconda? | [
"Error installing python-snappy: snappy-c.h: No such file or directory"
] | [
"How to run project files using Anaconda from any directory in Windows",
"Anaconda install error in ubuntu",
"Install tensorflow on Windows with anaconda",
"Can not import snappy in python",
"How to install Anaconda python for all users?",
"installing Anaconda on windows",
"Anaconda Python 32-bit is try... |
Search for string allowing for one mismatch in any location of the string | [
"Regex substring one mismatch in any location of string"
] | [
"Django : Type Mismatch Error in models.py",
"python not allowing same value in list",
"Objects mismatch",
"Mismatch in modules installed with Python",
"1-mismatch regular expression",
"Python 3 I think I have a type mismatch but can't find it",
"Python version mismatch, but there's just the one app",
... |
Missing BZ2 module in python | [
"Python's bz2 module not compiled by default",
"missing python bz2 module"
] | [
"Compiling bz2 support in python2",
"Decompressing a .bz2 file in Python",
"Python bz2 uncompressed file size",
"using bz2.decompress in python,but the answers different",
"Python TarFile with bz2 data",
"Importing bz2 compressed binary file as numpy array",
"Extracting bz2 file with single file in memo... |
Using sqlalchemy to query using multiple column where in clause | [
"How to write multi column in clause with sqlalchemy",
"SQLAlchemy IN clause"
] | [
"SQLAlchemy ORM: modify WHERE clause",
"SQLAlchemy custom query column",
"sqlalchemy: and_ and the evaluation of date function in clause list",
"Using Labels in HAVING() Clause in SQLAlchemy",
"Why is this sqlalchemy or_ expression not working with a true clause?",
"SQLAlchemy - Get query results in same ... |
Argparse - How to Specify a Default Subcommand | [
"Specify default subcommand with positional arguments"
] | [
"python: string as stdin to subcommand",
"Specify format for input arguments argparse python",
"Python argparse: Does it have to return a list?",
"Python argparse with -- as the value",
"Python argparse input file error",
"Get params sent to a subcommand of a click.group()",
"Python argparse a list inpu... |
Writelines writes lines without newline, Just fills the file | [
"Write each prime number in different line (Python 3)"
] | [
"How to make a newline in python?",
"Why calling file.read in python fills my file with garbage?",
"Python Split String On Newline And Keep Newline",
"Write a file, that writes a file. Problems using newline \\n",
"Python create text file without newline intepretation",
"python - how do i create a figure ... |
PyCharm ValueError: failed to parse CPython sys.version | [
"ValueError: failed to parse CPython sys.version after using conda command"
] | [
"CPython 2.7 + Java",
"CPython from Java?",
"conda ValueError: failed to parse Cpython sys.version",
"failed to create new file in pycharm using open",
"PyCharm module import error",
"Working with second python version in pycharm",
"How to run a python program like pycharm does",
"PyCharm File Number ... |
How to remove symbols from a string with Python? | [
"remove symbols from string"
] | [
"Find entries of symbols in any order",
"Create array of symbols with the length of split string",
"Why can't Python print Unicode symbols?",
"How to remove specific symbols from a text using python?",
"How to read symbols of an object file using C",
"Multiple symbols replace not working",
"Defining a r... |
install pyopencv with pip on Mac OS X | [
"OSX Brew Python \"Could not find a version that satisfies the requirement pyopencv\""
] | [
"Fail to install objccheckstyle using pip in Mac OS X",
"Can't install on Mac using pip or easy_install in terminal",
"How to install Python 3.1.2 on Mac OS X 10.6.4?",
"How to install PyGLEW in mac?",
"Dealin with different Python versions using Pip (Mac OS X 10.9.5)",
"How to install pyclamd with pip",
... |
Fitting only one parameter of a function with many parameters in python | [
"Fitting only 2 paramter of a function with many parameters in python"
] | [
"Line fitting below points",
"Curve Fitting in Python not fitting my curve",
"Fitting a line in 3D",
"Error in fitting the model",
"ValueError when fitting a model",
"Fitting a curve python",
"Error fitting a JSON file into a pandas Dataframe",
"curve fitting with python",
"Python fitting : optimize... |
yield - statement or expression? | [
"python: lambda, yield-statement/expression and loops (Clarify)"
] | [
"how to use python's yield statement",
"Can I yield from an instance method",
"yield in Python",
"Return and yield in the same function",
"What is the result of a yield expression in Python?",
"What does yield do in python 2.7?",
"Attempting to understand yield as an expression",
"How to use yield ins... |
UnboundLocalError when i am trying to do recursion from loop? | [
"Don't understand why UnboundLocalError occurs"
] | [
"UnboundLocalError: local variable",
"UnboundLocalError from imported class",
"Python - Weird UnboundLocalError",
"Python 3.x : UnboundLocalError and Loop",
"UnboundLocalError in Python 3.4",
"Python Django UnboundLocalError while calling a different function",
"How do I fix UnboundLocalError error?",
... |
How can I obtain the same 'special' solutions to underdetermined linear systems that Matlab's `A \ b` (mldivide) operator returns using numpy/scipy? | [
"Random solutions of undetermined linear systems"
] | [
"Python numpy equivalent of bandpower() from MATLAB",
"fir2 from matlab to python",
"numpy/scipy analog of matlab's fminsearch",
"How do I write this matlab example to python",
"Matlab's gaussmf in Python/SciPy?",
"Solution basis of underdetermined equation set in python",
"save matlab function to disk ... |
Using Pylint to display error and warnings | [
"Pylint to show only warnings and errors"
] | [
"No name in module error from Pylint",
"Pylint error __init__ method from base class '*' is not called",
"No such message id pylint",
"Pylint: read from stdin?",
"How to configure pylint in the python source",
"python code convention using pylint",
"Pylint - \"Using the global statement\"",
"Why doesn... |
PyGraphviz is just not getting installed in OS-X 10.9.4 | [
"How do I install pygraphviz with pip"
] | [
"pygraphviz layout IOerror",
"Python does not see pygraphviz",
"Pygraphviz / networkx set node level or layer",
"Error compiling pyGraphviz on Os X 10.9",
"Draw more information on graph\\nodes using PyGraphviz",
"Setting colour of nodes in pyGraphViz",
"Neato not found with pygraphviz on Mac OS",
"py... |
Automatically expiring variable | [
"How would you organize your data structure to pickup the last expiring item quickly in Python?"
] | [
"boto3 Create non-expiring URLS",
"django-session-security session not expiring",
"Python: how to automatically create an instance in another class",
"How to set expiring session for single variable",
"Google app engine suas cookies not expiring",
"Automatically run python code on save",
"Python, How to... |
Python TypeError: non-empty format string passed to object.__format__ | [
"(Coding the Matrix) Python Debug Provided Mat.py: non-empty format string passed to object.__format__",
"Python : Typeerror : Non-empty format string passed to object.__format__"
] | [
"How to format data into a python list",
"format string python",
"How can I format a string with a string",
"Python - Format file to list",
"Format string in python list",
"How to {} in format?",
"Python Format String with List",
"What is format of this file?",
"python, format string",
"Format a s... |
Python - Doing absolute imports from a subfolder | [
"When to use absolute imports"
] | [
"Why can't absolute imports find my module?",
"Python - Import from deeper subfolder",
"Python - what is the libs subfolder for?",
"Import module from subfolder",
"In Python: imports shenanigans (import subfolder.module in folder, use in subfolder/module2.py)",
"How do I import from a child directory / su... |
Implement an interactive shell over ssh in Python using Paramiko? | [
"Nested SSH session with Paramiko"
] | [
"Python Paramiko send CTRL+C to an ssh shell",
"Python interactive ssh client using paramiko",
"paramiko ssh.connect - what arguments to send?",
"SSH - Python with paramiko issue",
"Python, Paramiko: How to do a \"ssh -n user@host cmd\" using paramiko?",
"Creating multiple SSH connections at a time using ... |
how do I make a single legend for many subplots with matplotlib? | [
"Global legend for subplots with different content",
"One legend for all subplots in pyplot"
] | [
"Matplotlib Legend in a Loop?",
"Title for matplotlib legend",
"Why do matplotlib subplots start with 1",
"Matplotlib subplots: legend and axis-scale",
"matplotlib: Make legend appear above other subplots",
"Create subplots in Matplotlib in a loop?",
"Expanded legend over 2 subplots",
"Create matplotl... |
How to use QThread correctly in pyqt with moveToThread()? | [
"QThread use in Python"
] | [
"Changing GUI directly from Qthread PyQt 5",
"Python PyQt: Is it possible to use QThread with a non-GUI program?",
"PyQt QThread MultiThreading does not work",
"PyQt : Emtting signal from QThread to QWidget",
"Background thread with QThread in PyQt",
"Pyqt use QThread but GUI still not responding",
"How... |
OLS Regression: Scikit vs. Statsmodels? | [
"Difference in Python statsmodels OLS and R's lm"
] | [
"pandas: Is there a way to specify a title for a simple OLS regression output",
"Python numpy statsmodels OLS Regression specific value",
"Python statsmodels OLS: how to save learned model to file",
"Python - StatsModels, OLS Confidence interval",
"Python: OLS Regression does not generate intercept",
"Pan... |
Loading text file containing both float and string using numpy.loadtxt | [
"numpy loadtxt not resulting in array"
] | [
"Error using numpy.loadtxt",
"How to manipulate the data after numpy.loadtxt?",
"Specify which column not to load in numpy.loadtxt()",
"Conversion error in numpy.loadtxt()",
"numpy.loadtxt does not read file with complex numbers",
"Python numpy loadtxt fails with date time",
"File path name for NumPy's ... |
XlsxWriter object save as http response to create download in Django | [
"Xlsxwriter Error in Google App Engine"
] | [
"Output to more than 26 columns in xlsxwriter with python",
"Create an Excel file using xlsxwriter issue",
"XlsxWriter can't set header",
"How do I add list in xlsxwriter?",
"Convert CSV to excel using xlsxwriter and save it to django Model",
"Set window size for xlsxwriter",
"Python: list of strings, c... |
Multivariate kernel density estimation in Python | [
"How to implement Kernel density estimation in multivariate/3D"
] | [
"Compute multivariate normal density for multiple datapoints",
"Calculate the gaussian kernel density in python",
"Gaussian Kernel Density Estimation (KDE) of large numbers in Python",
"Python - integrate 2D Kernel Density Estimation within contour lines",
"Tools to use for conditional density estimation in... |
Matplotlib timelines | [
"is it possible to plot timelines with matplotlib?"
] | [
"How to use Matplotlib in Django?",
"matplotlib not working in import",
"Input function from user matplotlib in python",
"How to extract all tweets from multiple users' timelines using R?",
"Getting an error when trying to import matplotlib",
"Can't import matplotlib",
"Creating sparklines using matplot... |
SQLAlchemy relationship with association_proxy problems | [
"How can SQLAlchemy association_proxy be used bi-directionally?"
] | [
"SQLAlchemy relationship on many-to-many association table",
"Association table in sqlalchemy core",
"SQLAlchemy how to get Column values from association table in many to many relationship",
"How do I make a relationship to a classless value in SQLAlchemy?",
"How do I query an association table in SQLAlche... |
Convert pandas dataframe from wide to long | [
"Convert pandas dataframe from wide to long when some columns have multiple separators"
] | [
"Pandas long to wide",
"How to create module-wide variables in Python?",
"Python pandas dataframe reshape long to wide, multiple columns and constant values",
"Convert Pandas df with missing entries from long to wide format",
"Long to wide format for multiple column in python",
"Python pandas: pivot certa... |
How do I use Matplotlib to save an image generated with ggplot? | [
"ggsave() in ggplot for python not saving"
] | [
"How do you make ggplot plots of numpy arrays?",
"python ggplot legend size",
"How do I create a bar chart in python ggplot?",
"Documentation and syntax for ggplot in python",
"In Jupyter, how can I use the matplotlib ggplot style by default?",
"Matplotlib: Overriding \"ggplot\" default style properties",... |
Using python imaplib to "delete" an email from Gmail? | [
"Problem deleting emails in gmail using imaplib",
"Python imaplib deleting multiple emails gmail"
] | [
"Python imaplib fetch body emails gmail",
"Search in Gmail using imaplib",
"python imaplib reading gmail",
"Creating a Draft message in Gmail using the imaplib in Python",
"error handling with imaplib in python",
"python imaplib: Do I have to call .close() only once?",
"gmail login failure using python ... |
Why doesn't python decimal library return the specified number of signficant figures for some inputs | [
"Significant figures in the decimal module"
] | [
"How to control subplot main figures?",
"How to show two figures using matplotlib?",
"How can I \"trim\" significant figures of a Decimal in Python to only those that are non-zero?",
"Errors writing multiple figures to a .pdf",
"Close all the figures generated by a loop",
"Get the list of figures in matpl... |
YAML loads 5e-6 as string and not a number | [
"How to parse/read a YAML file into a Python object?"
] | [
"What is the difference between ! and !! in yaml?",
"How can I add a comment to a YAML file in Python",
"Reading YAML file with Python results in yaml.composer.ComposerError: expected a single document in the stream",
"Run a python command from a .yaml file",
"Create datetime.time() object in yaml?",
"How... |
NumPy for windows python 2.7 | [
"numpy installation on windows 7"
] | [
"Installing Numpy 1.9.2 on Windows 7",
"as of in numpy",
"cvblobslib python interface for windows 7",
"Installing numpy on Windows 7 and python 3.x",
"Centralising data in numpy",
"jasondb in Windows Python 3.5",
"Numpy for windows 10 64 bit python 2.7",
"SQP method with numpy",
"Using python to cod... |
Python and ctypes: how to correctly pass "pointer-to-pointer" into DLL? | [
"python ctypes, pass double pointer by reference"
] | [
"Python function pointer",
"ctypes pointer question",
"Python ctypes module: NULL pointer access while extending pointer array",
"file pointer down then over",
"File pointer in python",
"Using ctypes to write callbacks that pass-in pointer to pointer parameters to be used as output-parameter",
"Python c... |
Twisted and Websockets: Beyond Echo | [
"Making moves w/ websockets and python / django ( / twisted? )"
] | [
"Twisted and starpy error (python)",
"Python twisted: where to start",
"PyQt and WebSockets",
"http echo server and client twisted",
"Python twisted issue",
"nginx + python + websockets",
"createResolver() in twisted not working",
"Python Twisted's DeferredLock",
"get multiple variables from form wi... |
Mac OS X - EnvironmentError: mysql_config not found | [
"Installing MySQL Python on Mac OS X",
"pip install mysql-python fails with EnvironmentError: mysql_config not found"
] | [
"How should I go about setting up my first MySQL database on my Mac?",
"MySQL-python install Mac",
"Python MySQL On Mac OS X Lion",
"setting up mysql on Mac",
"MySQL-python - mysql_config not found",
"Django path in Mac OS X",
"How to install Python 3.1.2 on Mac OS X 10.6.4?",
"python:mysql_config not... |
Py2Exe "Missing Modules" | [
"py2exe \"include\" modules: when should they be managed manually?"
] | [
"Import modules after compilation with py2exe",
"Issues Using py2exe",
"Using Py2Exe without command line",
"Important packages and modules not compatible with py2exe?",
"py2exe problems",
"Py2exe with Tkinter",
"Help with py2exe error",
"py2exe cannot find a module",
"Python py2exe all-in-one",
"... |
How can I debug Python3 code in Visual Studio Code | [
"Debug Python from Visual Studio Code - Importing Numpy"
] | [
"Python: How to use the debug information files in Visual Studio?",
"Python 3 on visual studio code",
"Why Eclipse and Visual Studio read Python string in a different way?",
"Visual Studio 2017 Python can't debug files",
"Call a C++ project main() in Python in Visual Studio?",
"Can't run Python script in ... |
izip_longest in itertools: How does rasing IndexError inside the iterator work? | [
"izip_longest in itertools: what's going on here?"
] | [
"Why does this implementation of izip() not work?",
"How to access 2 list at a time while looking ahead with izip_longest? -Python",
"Find longest string in a list",
"What is the inverse function of itertools.izip in python?",
"itertools.izip() for not predefined count of lists",
"Python IndexError list",... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.