Category "python"

Cannot move or resize Anaconda Navigator window

Are there any way out to have a maximize button on the Anaconda Navigator window? I have installed Anaconda in Ubuntu & created a custom launcher using this

Tweepy API v2 "NoneType"

import tweepy client = tweepy.Client(consumer_key='REPLACE_ME', consumer_secret='REPLACE_ME', access_token='REPLA

Pyspark 1.6.3 error when trying to use to_date method

im currently working on pyspark 1.6.3 and there is this error. Do you know what can be the reason? code

Is there a way to obtain the same LaTeX output as one gets in Jupyter, but in Visual Studio?

For some unbeknownst reason which I have not been able to identify, and I already proposed in the form of my first programming question, I can not get the resul

Tensorflow: How to slice/gather all possible configurations?

I have a tensor with shape (batch size, sequence length, 2, N, K) (in my particular case, the 2 represents the (x, y) spatial position). N represents N variable

changing frequency in a pandas SeriesGroupBy

I'm struggling to find a simple way to change a frequency of a pd.Series that is grouped on some level of a pd.MultiIndex (so it's a pd.core.groupby.generic.Ser

Compute distances of points relatively to reference point cloud

A point-cloud to point-cloud distance can be simply computed using the nearest neighbor distance. The issue is that the nearest neighbour is not necessarily the

Can´t access pseudo ::before ::after element in Selenium

I want to get the text within a var tag which lies within a pseudo class: ::before ... <var class="added">Element</var> .. ::after I tried How locat

Convert a set of overlapping cuiboids to a minumum set of non-overlapping cuiboids

I am trying to decompose an overlapping set of cuboids to non-overlapping ones, the fewer non-overlapping cuboids used the better. For example, in the case belo

Breaking the Game F5

Breaking the Game F5 F5 is sometimes the bane of programmers. Some would go a long way to dismantle this key from keyboards around the world. Unfortunately, thi

Product and summation with 3d and 1d arrays

Given a 3d array X with dimensions (K,n,m) that can be considered as a stack of K (n,m) matrices and a 1d vector b (dim n), the goal is to obtain the resulting

Error in running Pandas Profile report Python

I try to do an exploratory data analysis with the Python package pandas ProfileReport, but I get the following error: Summarize dataset: 40%|██`

h2o-pysparkling-2.4 and Glue Jobs with: {"error":"TypeError: 'JavaPackage' object is not callable","errorType":"EXECUTION_FAILURE"}

I am try to using pysparkling.ml.H2OMOJOModel for predict a spark dataframe using a MOJO model trained with h2o==3.32.0.2 in AWS Glue Jobs, how ever a got the e

How to click all arrow buttons within a dynamic table on website?

On this website (https://www.tradingview.com/symbols/NASDAQ-TSLA/financials-income-statement/), there is a table with clickable arrows on some of the rows. I've

Dataframe returning empty after assignment of values?

Essentially, I would like to add values to certain columns in an empty DataFrame with defined columns, but when I run the code, I get. Empty DataFrame Columns:

How do I change this to use websockets binance python?

I've done this program, but don't know how to change this to use web sockets. If I use this as it is, I get an API error (too many calls) and tells me to use we

how to create dependent dropdownlist in python and streamlit?

based on the answer of this post i was able to display the dataframe after apply the required filter. I have a streamlit code that display multiple dropdown l

Screen w/ turtle in google colab

How do you fix this? I just need input of some kind for turtle. Code: from ColabTurtle.Turtle import * initializeTurtle() #screen=turtle.screen ? def frd():

Taking the updated variable at the end of a for loop to be used in the same for loop in python

I'm new to coding and having some trouble working on a sudoku solver. I made a for loop that goes through every blank position in the sudoku and finds the possi

PyCharm does not see executables in the PATH

I'm trying to run a browser using the selenium module and the geckodriver executable using PyCharm on a Linux machine. The simplest code to get the error is: fr