All Questions

Filter by
Sorted by
Tagged with
-1
votes
0answers
6 views

Python - Cannot decode characters even though it should

I have the following code: def InputAsBool(msg, t, f): userInput = input(msg).lower().strip() if userInput == t: return True elif userInput == f: return False else: ...
0
votes
0answers
6 views

Receive the number of top and the input row together

I use this lines of code to receive in a final dataframe the number of topics and the input columns of a dataframe All of them into one dataframe library(quanteda) library(stm) df1 <- data.frame(...
0
votes
0answers
4 views

Can we have the ExtendedFloatingActionButton width match parent when expanded?

I want ExtendedFloatingActionButton to have width match parent. currently it only sets width according to the text length.
0
votes
0answers
5 views

Display checkbox in order admin list, broken code

I am using Display custom checkbox field on woocomerce admin order list But it is broken, the checkbox is not selectable, it leads directly to order page. Also if you remove 'required' =&...
0
votes
0answers
5 views

Flutter Dart Turn String into List from another List

From an api i get a list of albums with cover art ids, I take that list and put the cover art ids into a function to get the URLs for the cover art from the api. My problem is I'm trying to turn the ...
0
votes
1answer
6 views

Simulation - Voxel Grid

I'm trying to build a simulation that will take place in a 1000x1000x1000 space. For each point in space, I need to be able to encode 2 or 3 properties. I also need to be able to do some basic ...
0
votes
0answers
4 views

High Score in Score in Train Test Split but Low Score in CV Score in Python Scikit-Learn

I am new in Data Science and have struggled in the problem for the Kaggle's problem. When I use random forest regression for predicting the rating, it is found high Score in Score in Train Test Split ...
-1
votes
0answers
15 views

Double quotes on a regex patter string causing failure of regular expression search

code pi = pii_list[0] regx = rxpattern_list[0] pi >>> 'Age' regx >>> "rf'^(?:age)(?:age)(?:age)$'" def pattern_match(pi,regx): df["field_friendly_name"] = ...
-1
votes
0answers
11 views

Get distinct url from the python scrapper

I am trying to scrap the distict/Unique URL using the Python BeautifulSoup Library. I have used set to store the url so that distinct url's can be stored but in result i am not getting distinct urls. ...
0
votes
0answers
5 views

Android studio onTouch and onClick listeners not working for calendar view

Hey so I'm learning android programming and I have a calendar view that has a on selectedDayChange listener. The idea is that when a day is selected a pop up window will appear underneath the selected ...
0
votes
0answers
4 views

How would I create a list of people attending an event using Django, Django Rest Framework and mysql

I'd like to add users to an event and be able to see this list of users who have registered to attend the event using django rest framework. I am having trouble creating this with the events and ...
0
votes
0answers
4 views

How to setup transaction in Camel JMS Route

How do I setup transaction in JMS route to rollback or not consume a message when an exception occurs. Below is my route. MQ is ActiveMQ. from("jms:queue:myQueue") .routeId("...
1
vote
2answers
28 views

What IEnumerable<IEnumerable<>> means?

Some methods in c# that i have seen , requires IEnumerable<IEnumerable<"some class">>. When method need IEnumerable<"some class"> as a parameter , i can pass a ...
0
votes
0answers
6 views

Web scraping: Combining tables in for-loop in R

I'm using a loop to scrape tables from a website. Can't figure out how to combine the tables into one data frame. The following code works to scrape the relevant information for one page, but I'm not ...
0
votes
0answers
5 views

Decorators unexpectedly change constructor behavior in Python

Below, I show a simplified example of a more complicated code, but nonetheless, it fully represents the issue that I have encountered. Part 1: this works fine, no issues: class Animal(): def ...

15 30 50 per page
1
3 4
5
6 7
1318933