Questions tagged [filter]

A program or routine that blocks access to data that meet a particular criterion. An example would be a "Web filter" that screens out adult websites. Do NOT use this tag for: Java servlet filters. Use [servlet-filters] instead. For Bloom filters, use [bloom-filter] instead.

0
votes
0answers
4 views

Mapbox GL JS markers show/hide

Using Mapbox GL JS and following the provided example which shows how to attach markers to the map // add markers to map geojson.features.forEach(function(marker) { // create a HTML element for ...
0
votes
0answers
4 views

How to remove 'ALL' and show an specific category as default filer?

I want to remove 'all' button and set the 'audiobook' filter as default when the user visits the website. I will have only 2 buttons there Audio Book and Text Images. I am using Bootstrap 4. This is ...
1
vote
1answer
18 views

Kafka streams : how to handle dynamic conditions in a filter?

Is there any way to handle a dynamic condition in a kafka stream ? I need to filter my streamed data by a list of values changed by users, but this list of values are not in a stream, they are ...
0
votes
0answers
40 views

How do I filter JSON Output of Reactjs?

The display of the output from the JSON file shown like the picture below. This is my code regarding the react side componentDidMount(){ axios.post(BASE_URL + '/filenameFolder') .then(res =&...
2
votes
3answers
39 views

How do you find if a value is found in specific columns?

ID Pred1 Pred2 Pred3 Obs1 Obs2 Obs3 FP 1 Boston Tokyo London Boston London Other 0 2 Tokyo London Paris Seattle Paris Other 0 3 London Berlin Paris Paris ...
0
votes
1answer
24 views

Filter a list with checkboxes in Angular 6

i have an arrray of restaurants restaurants=[ { restname: "rest1", isDelivery: true, isItalian:false, isBreakfast:true}, { restname: "rest2", isDelivery: false, isItalian:true, isBreakfast:true}, { ...
0
votes
0answers
14 views

Php Time filter [duplicate]

I am wondering how to create time filter for a table, for other things to filter I use this code: if($projects == 0){ $query = mysqli_query($conn, "SELECT * FROM zapasy WHERE projekt ='0' ...
0
votes
1answer
26 views

How to return only the rows from a data frame that any of the column cells contain some specific strings?

I have a data frame like below but with 384 columns: id col1 col2 col3 col4 col5 ..... col385 1 B45-P Y X RH_B17 S-B45 IU_B34 ' IU_B34 Y Y ...
1
vote
1answer
36 views

Django: Can I check if a model instance matches a filter without filtering all model instances

I have an instance of a model. I have a queryset. Can I check if the instance matches a filter without filtering all model objects? Situation: I have a model Alpha, when this model is created I need ...
0
votes
1answer
11 views

How can i exclude parsing events by kv filter which does not match pattern

I am parsing logs from many daemons of UTM solution. Grok and kv config looks like: grok { match => [ "message", "%{SYSLOGPROG} %{NOTSPACE:syslog_hostname} %{DATA:syslog_program}(?:\[%{...
0
votes
1answer
20 views

Open file dialog with extension filter for a custom extension with kotlin

Is there any way to set a file extension filter for this intent: I want to filter files with this extension ".xxx" val intent = Intent() .setType("*/*") // <- it doesn't work if I ...
-3
votes
1answer
35 views

tabs.filter is not a function [duplicate]

So, I have an array of tabs in an overflow auto container (the tabs const) and I want to filter them to get the last visible one. My idea is to take the x value of the container (overflowWrapperRight) ...
0
votes
1answer
17 views

How to filter unique words from one long string?

I need help with homework task: I need to filter all unique words from lorem ipsum text and build from all unique words new Array. Text I try to filter for unique words: 'Lorem ipsum dolor sit amet ...
0
votes
1answer
20 views

Find Specific Attribute in has_many and HABTM Associations

I have a rails model called Agents. I've been tasked with filtering the agents by state and industry. The endpoint should be a GET request to: /api/agents?state=OH&industry=Professional%20Beer%...
2
votes
1answer
15 views

Mat-table Filter data from Firbase by column

I use angular 6, firebase and material angular. I can load my data into the table, I can sort them, have the paginator, and filter them globally I would now like to modify my filter so that it just ...
0
votes
2answers
18 views

How can I subset a data frame based on a list of unique values in a columns of that same data frame?

I have a simple dataframe that looks like this. I want to be able to select all of the rows where LOC is New York, subset this dataframe and tag it as a variable I can use to append the New York rows ...
0
votes
0answers
13 views

Filter Wordpress widgets to add widget title as h2 id

I have created a one page Wordpress website with jump links to various sections however the Contact section is a widget and doesn't have a nice looking human readable id attribute (id="wpforms-widget-...
0
votes
0answers
23 views

Easiest way to implement a 3d rect pulse in matlab?

I want to do a rect pulse in 3d for filtering some region on fourier domain but i'm not find the form to plot a rectangle pulse as filter in 3d. Some like this Thanks in advance!
0
votes
0answers
10 views

How to fix 'TypeError: Cannot read property 'items' of undefined'

I am trying to display a reference field from my database as a result on my filtered repeater. I am unsure of how to code the page correctly for this to happen. When testing my code, this is what ...
0
votes
1answer
38 views

Spark filter not working as expected.. 'Column' object is not callable

When using the "and" clause in filter on Spark Dataframe, it returns Spark.SQL.Column instead of Spark Dataframe. But for one condition it works fine. How to show() or iterate through Spark Sql ...
-2
votes
0answers
17 views

Seeking one-line solution to get min x value from list of x,y tuples using min, map, filter

Modify the code shown below to determine the minimum x value of all points that are in the first quadrant (x and y values both positive). This will require you to use map , filter and min . You can ...
0
votes
0answers
22 views

Java Spring - Servlet filter that does Minification [Avoiding getOutputStream() has already been called for this response]

My requirement : Minify html as much as you can for every response. This was achieved by creating servlet filter with compressor , that compresses data inside of response : import com.googlecode....
-2
votes
3answers
55 views

What is different between these two filter? solved

what is different between these two block of code , the outcome of the result are the same. can any one help me and explain the difference? update: the first block of code is not valid . since it'...
0
votes
0answers
17 views

How to remove decimal from currency in ionic v3

I am trying to remove decimal from 1,000,000.00 GBP <ion-col width-50> <p style="padding: 3px 0px;color: #3f454e;font-size: 13px;font-weight: bold;">Gross Loan Amount: </p> ...
0
votes
0answers
27 views

Selecting rows based on multiple conditions including date transformation

I'm working on some research focusing on the effect of credit rating downgrades on bond prices. I have a dataset of different bonds with data for each day, so each row consists to a specific bond on a ...
0
votes
0answers
16 views

Liquid template sort filter throws error when trying to sort by property of object

I'm learning the Liquid template language (through eleventy site generator) and I'm trying to use the sort filter to sort an array of objects by property. Everything I can find says you can do {{ ...
3
votes
2answers
51 views

Filter only few element of groups after pandas groupby

I was learning the book "R for Data Science" by Hadly and trying to replicate the codes in pandas. I encountered this problem: I have to create a new column of rank based on the delayed time of the ...
0
votes
1answer
16 views

resizing div following filtering div contents

I am using jquery filters to narrow down products. All products have their own divs but are all inside of one "large div". When a filter is used, the divs for the products which don't meet the ...
0
votes
0answers
12 views

Filtering Multiple Parameters from HTML Table with JavaScript

I've been looking around similar questions but I didnt found out the way to implement another parameter into the search. Right now I have the following code that has two text inputs and filters names ...
1
vote
1answer
26 views

Sum information with date restriction

I just want to sum by ID and a given value the total depending of a range of dates I tried this: days=(360) import datetime import pandas as pd group = None df=pd.read_excel(r'C:\Users\xxxx\Desktop\...
0
votes
1answer
39 views

filtering based on multiple conditions in Python

I have a df which has a list of stocks, index membership, market cap, rank of market cap, turnover and rank of turnover. i need to created another column called 'Deletes' which will delete stocks ...
0
votes
0answers
19 views

I need multi filtering column for web application by bootstrap

I found one example for multi filtering in this site: Visit https://www.ag-grid.com/javascript-grid-filtering/ but isn't bootstrap. I need Set All Filter Models in a limited scope. and very fast... ...
0
votes
1answer
32 views

Elasticsearch query speed up with repeated used terms query filter

I will need to find out the co-occurrence times between one single tag and another fixed set of tags as whole. I have 10000 different single tags, and there are 10k tags inside fixed set of tags. I ...
0
votes
0answers
19 views

How to get value or id from dynamically populated checkbox using ng-repeat of group by (key,value) if it checked to json array or object

I ma populating channel name from using json object, which included channel name id and price with associated checkbox. When user checked checkbox it should fetch or store selected/checked checkbox ...
1
vote
2answers
37 views

Creating filter using lambda is producing bool Error

I want to filter out value "UNK" from column payment_type and return the complete dataframe. I'd like to use an anonymous function. I'm getting a Type Error. I've tried creating a separate function, ...
1
vote
3answers
23 views

Filtering dataframes in named list based on the name of each dataframe

I have multiple data frames in a named list, reproducible example below: set.seed(1) df1 <- data.frame( numbers = sample(1:10), boolean = sample(c("yes", "no"), 10, replace = TRUE) ) df2 <-...
-1
votes
1answer
37 views

Filter Between 2 date in ASP.NET MVC

i want to filter or search between 2 date i write this code , but when i run the application the data which in the table not show what is the wrong ? This is my controller : public ActionResult ...
0
votes
3answers
30 views

Not able to click on elements in loop in protractor

I have a ecommerce website, which has list of products similar to amazon. i am trying to look for a element and click it. i have tried by filter and map and both not working for me. Please help. ...
0
votes
2answers
44 views

How to understand the following code, this serves as a pipe in an Angular project

Background: I am building a SIM project with Angular 7. Using this following pipe to select the corresponding items inside an array(list[]), and display it to the UI. With the title(filterField) of ...
0
votes
0answers
9 views

Filter Origin-Destination data based on datetime POSIXct class

I have an Origin Destination matrix based on the location of Tweets. The Origin dataset has one tweet per user, however, the Destination dataset has multiple tweets from the same user. I'm trying to ...
1
vote
3answers
32 views

Getting #f or False at end of result from Define Filter function in Scheme (SCM)

I am working on the SICP book. I am using SCM on Windows instead of the actual Scheme program. When I run the Filter function below I get (1 3 5 . #f) as shown below in the code window. I cannot ...
1
vote
1answer
18 views

Issue filter and using Object.entries

I have the following issue. I have a code that if I put it separate chaining the .filters it works, also if I test the code separtly, but when I combine them even when the values are returning true ...
0
votes
0answers
32 views

Is it possible to match table data with an array and turn it into a html link in PHP

I currently have a jQuery script that matches the values from my table to an array to find a corresponding url and output it as html. It works fine however I would like to keep my array private (so ...
0
votes
1answer
16 views

WordPress filter APPEND nofollow to rel

I am trying append nofollow to add external links. If a link does not have a rel attribute, rel="nofollow" will be added. If a link already has rel="nofollow" nothing will happen, and if a link has ...
1
vote
1answer
43 views

How can I extract all the cell values (as well as their cell IDs) that have a specific color?

I have a dataset which looks like this. I want to create another dataset which only has two columns: (1) The value/text of all cells that are red (2) The original cell ID associated with each value/...
0
votes
0answers
14 views

Why are some fields not available as filters for Community/Custom apps in Rally?

I have a Rally page that contains some Community apps (e.g., 'Custom List with Deep Export') and Custom HTML apps that are using some code I found on GitHub (.e.g., Custom Grid with Deep Export. ...
0
votes
3answers
43 views

How to filter the content of an ArrayList the right way?

I was working on finding a better way to filter the content of an ArrayList For example, this program has a main ArrayList called "students" and then I made other sublistes from the content of this ...
0
votes
4answers
43 views

How to filter a table, find matching entry in json data and add the corresponding link

I would like to filter the second column of my table, find the matching entry in my "profiles" and use attr('href', $(link)) to make the name a corresponding link. I have tried doing it in a few ...
0
votes
1answer
30 views

Filtering BindingList

In C# WinForms I have two DataGrids displaying tabular data. First display all rows, second one is supposed to display filtered set of these rows. I need to build filtered view on my BindingList view ...
0
votes
1answer
34 views

Filter on date in PowerQuery (PowerBI)

I'm currently getting to much data from my cosmosDB, which I want to reduce to the last 8 weeks. How can I filter in PowerQuery to get the last 8 weeks based on my date column. This is my powerquery ...

http://mssss.yulina-kosm.ru