Questions tagged [filter]

A program or routine that rejects or accepts data that meets a given criterion. An example would be a "high-pass filter" that removed entries less than a given limit from a set of values. Do NOT use this tag for: Java servlet filters. Use [servlet-filters] instead. For Bloom filters, use [bloom-filter] instead. For CSS filters use [css-filters].

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

How can I filter maximum value within each group [duplicate]

I heed to filter df so the output shout be the max value within of each group df: product_id day_of_the_week product_id_count 59536eeb13a52ef81966f81b91fb481e Tuesday ...
Practice Languages's user avatar
-1 votes
0 answers
13 views

How to implement filtering the views in Flutter?

I'm developing a flutter app that lists some data. Now I want to filter them based on dates, week, month, year , lifetime like this, But can't figure out how it is done. I already did custom date ...
valen_1105's user avatar
1 vote
0 answers
10 views

Using MongoDBCompass, how do I search for documents with two consecutive elements in an array field?

I have a Mongo collection with an array "auditTrail" that contains objects that may have a field named "command" Using MongoDBCompass (on Windows 10), how do I search for ...
Dave's user avatar
  • 15.9k
1 vote
1 answer
32 views

Filtering a dataframe for specific combinations of variables using a named list

I want to filter a nested dataframe for specific combinations of variables using a named list and I can't manage to exclude some unwanted combinations. Here's an example : library(tidyverse) # Create ...
Xavier's user avatar
  • 23
0 votes
2 answers
36 views

Filter a list based on multiple checked checkboxes with ONLY CSS & HTML

I'm trying to create a filterable list of items that shows unique values when a combination of filters are checked. I need to be able to do this with only with CSS and HTML because the internal ...
Andrew Phillips's user avatar
0 votes
2 answers
27 views

Filtering in r with if statement

I want to filter a data.frame as follows: mwe: qdf= data.frame(id = c(1,1,1,2,2,2,3,3,3,4,4,4), month= rep(c(0,6,12),4), result = c(4,5,NA,5,6,7, 6,NA,6,4,NA,NA)) qdf ...
Mark Davies's user avatar
0 votes
0 answers
25 views

filtering pooled data from a dataframe and assigning it to a new dataframe in R

I am trying to filter out some pooled data from a dataframe and assigning it to a new dataframe however I keep getting an error and I am really confused on how to fix this I tried doing: ...
Sabrina's user avatar
-1 votes
0 answers
13 views

get exchange attributes in @Around aspect java

i implement WebFilter in my project and put an item in exchange.getAttributes() like this: @Override public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) { Map<...
milad ghani's user avatar
0 votes
1 answer
22 views

Ajax Filters are not updating on first load based on url parameters

add_action( 'wp_ajax_nopriv_filter', 'team_filter_ajax' ); add_action( 'wp_ajax_filter', 'team_filter_ajax' ); function team_filter_ajax() { $category = isset( $_POST['category'] ) ? ...
Victor's user avatar
  • 11
-1 votes
0 answers
10 views

How to use custom filter in aiogram 3.1.1. How I can call this filter

I'm learning AIOgram 3.1.1. and I can't understand how to use my custom filters like this. from aiogram.filters import BaseFilter from aiogram.types import Message from aiogram import Bot class ...
-3 votes
4 answers
71 views

How to filter a dataframe by consecutive value and condition?

I have a pandas dataframe like this: df = pd.DataFrame({'a':[1, 1, 1, 2, 1, 3, 1, 1, 4, 4, 5, 5, 5, 6, 6, 3]}) >>> df a 0 1 1 1 2 1 3 2 4 1 5 3 6 1 7 1 8 4 9 4 10 5 ...
skywave1980's user avatar
0 votes
0 answers
9 views

STM32 with dual CAN - configure filters

Looking for help with a strange issue while trying to set up filters on STM32F105 that has 2 CAN busses - the filters in 16bit list mode work only for the first 2 banks. But the same configuration ...
brigadir's user avatar
  • 6,872
0 votes
0 answers
10 views

Telerik RadComboBox filter with multiple words separated with blank space

i'm wondering if there is a way for a telerik radcombobox (or radautocompletebox or asp dropdownlist maybe) to filter two or more words. For example : if this radcombobox has a value like "A long ...
Βασίλης Π.'s user avatar
0 votes
1 answer
30 views

Filter over arrays and return a search input

I am trying to filter through an array of an array of strings and want to push all instances of an array that includes a search term into its own array. I've tried to use the map, filter, forEach ...
Anthony Luth Jr.'s user avatar
0 votes
1 answer
41 views

Flutter having Listview in Popmenu is not filtering data

I am currently working on a Flutter project and I am trying to create a searchable dropdown using the CustomDropdown widget. The issue I am facing is that the filteredItems variable is updating ...
Taha Waseem's user avatar
0 votes
0 answers
25 views

Implementing filter feature in angular

I am trying to implement a filter feature in my angular application. In my page, I have subscribed to changes in the filter component and as soon as user makes any change I want to filter the result ...
Tony Roczz's user avatar
  • 2,366
-1 votes
0 answers
44 views

Filter word out of string [closed]

You get a string of unknown length. You get it character by character using function getchar(). You have access to function putchar(c) which prints out the character c. You get a word of length N. You ...
OceanClouds's user avatar
-1 votes
0 answers
24 views

Spring Security filter with a second-order priority is not running

@EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true) public class SecConfTest { @RequiredArgsConstructor @Configuration @Order(1) public static class ...
Ayshan Rzayeva's user avatar
0 votes
0 answers
15 views

How to build a 2d filter based on 1d filters? [closed]

I have a series of 1D filters at different angle(for example, 0, 22.5, 45, 67.5, 90...). What's the best way to build a 2D filter? I am trying to apply filters on polygons. I already got the 1D ...
jun-kai yang's user avatar
-2 votes
1 answer
81 views

How do I convert multiple for loops with multiple conditions to Java 8 Stream Filter

I am still getting used to using stream filters in Java. I am having a long time converting this conventional for loop into it since it has multiple lists and multiple conditions. CarTypes type = ...
Java Student's user avatar
0 votes
1 answer
24 views

LiveWire simple category filter not working

Trying to implement simple news category filter with livewire components but somehow feature is not working. news-index.blade <div> <div class="max-w-2xl md:mx-auto md:text-center xl:...
fx3z's user avatar
  • 13
0 votes
1 answer
47 views

Apply filter in data.table as in dplyr

Translate dplyr::filter into data.table code. Let's supposse I have: library(data.table) library(dplyr) dt <- data.table( A = c(TRUE, TRUE, TRUE), B = c(TRUE, FALSE, TRUE), C = c(FALSE, TRUE,...
Rodrigo Tanco's user avatar
0 votes
1 answer
15 views

FilterPopup needs to resize in Telerik RadGridView

I am using WPF Telerik RadGridView. I want to resize the filterpopup width like column resizing. I am not able to see any properties. Can anyone help me on this.
Elavarasan M's user avatar
0 votes
0 answers
8 views

AbstractGatewayFilterFactory kotlin implementation dont receive config parameter

I wrote custom gateway filter on kotlin with config class, but when i start app got exception. @Component class UserRequestLimiterFilter( @Lazy var userRequestAttemptRepository: ...
Maksim Protsenko's user avatar
-1 votes
0 answers
34 views

Filter Google Sheets - Being offset and then not taking last condition

*I am trying to create a filter for an attendance sheet. I previously created one last year but it involved using 25 different Google Forms. This year I am trying to do the same but only using one ...
Shea Murphy's user avatar
0 votes
0 answers
29 views

Filtering out rows with NA in list

I am preparing code in order to upload an excel file with multiple sheets in order to separate them into their own excel files for easy upload. In order to do so I used the following code to create ...
Jack Wassik's user avatar
0 votes
1 answer
54 views

Removing only the duplicate key and value from an object

I've been searching high and low for this one, I have an array of objects that contain dates and times, I'm looking to remove the duplicate date and keeping the rest of the data in the object. So... [ ...
nsbrown's user avatar
  • 55
0 votes
1 answer
27 views

Adding a HTTP interceptor for static resources to Quarkus (with Kotlin) application

I'd like to know how to add a HTTP filter/interceptor for static resources in my quarkus application. I have some static resources which I'd like to serve from my backend with cookie based ...
Nitish's user avatar
  • 1
0 votes
1 answer
42 views

Get positive elements adjacent to particular row

I have a table and I would like to extract all values in column diff2 which are equal to 1 and are adjacent to another value 1 starting from row where SERIES = 'SERIE A' and rn='1'. Is there a way to ...
Osvaldo Assunção's user avatar
0 votes
3 answers
33 views

Filter pandas DataFrame using a column of np arrays

I have a pandas dataframe with a column containing arrays. I want to filter my df based on values of the column with arrays. For example, for the df subject ...
jaweria's user avatar
  • 63
-1 votes
3 answers
71 views

Javascript filter on array of objects

I am using this code to filter property value which has true. Filter value may get array of objects. But I need to take first characteristic. var filter = Service.filter(s => s.characteristics.find(...
Ajt's user avatar
  • 1,719
-2 votes
1 answer
60 views

Is there a way to reorder an array by comparing 2 different values and create a new one indicating previousSibling in a new array?

*UPDATED This is a basic example of how it should look like: Below, is the current way that I got the data from the server. [ { "id": "a2ae04b7-11b3-406f-ab14-3df57a92d01e&...
Julio Graffin's user avatar
0 votes
0 answers
31 views

Calculate maximum value of a time based running total measure and filtering time table based on another table

Here is the situation (POWERBI): I have 2 tables: one calendar table named "CALENDAR" and one fact table called "DELIBERE" I have a time based running total measure called "...
V_BI_MAR's user avatar
0 votes
0 answers
22 views

Conditional Filtering in excel

This is an analysis calculation sheet to get information from just copying raw data into another Excel sheet rest in the file. My purpose is to zero the data copying and calculation manually rather ...
MD40's user avatar
  • 157
0 votes
0 answers
12 views

Toggle filter show/hide searchandfilter shortcode Wordpress plugin not working well

https://dev.annacdesign.com/resources/ here I've a searchandfilter shortcode that is visible when you press the filter button. Problems: when i start filtering and then i want to hide the shortcode/...
ballad anna balladanna's user avatar
0 votes
0 answers
33 views

Change logo svg color on scroll in Elementor

I need to change the color of the logo in elementor using a filter In theory it should be like this, but it doesn't work selector .elementor-widget-image{ filter: brightness(0) saturate(100%) ...
Дмитрий Выхованец's user avatar
-2 votes
0 answers
25 views

Trafficker/Teams filter on report Google Ad Manager 360 [closed]

Is it possible to add a filter to the report that filters only on for example Trafficker or Teams (Google Ad Manager 360)? I ask this because we experience very long loading times, due to the huge ...
Bram de Haan's user avatar
0 votes
1 answer
12 views

How to use date_sub in pyspark to filter data between dates by a given date

I have a column 'calendar_date' which contains different dates from 2010 to 2024. And I have to filter between dates from a given date. For example I have the date '2023-09-15' and i have to filter ...
Tomás Jullier's user avatar
0 votes
0 answers
10 views

filter many to many field from a list

Here are my models class Subjects (models.Model): id=models.AutoField(primary_key=True) subject_name=models.CharField () class Examinations(models.Model): id=models.AutoField(primary_key=...
Rao Muhammad Zakria's user avatar
0 votes
0 answers
7 views

Angular checkbox filter function not working with Selenium automation

FE developed w/Angular 16. I have a checkbox dropdown to filter things but I need to click somewhere in the page in order to filter work. With Selenium Java automation framework, web elements are ...
Gulustan's user avatar
0 votes
2 answers
87 views

Js extract information from a json

I have the following json that is quite complex and detailed. I need to extrapolate information (text) from the json only if the resource-id contains the following text "com.shazam.android:id/&...
Paul's user avatar
  • 3,708
0 votes
0 answers
9 views

infinite loop in pre_get_posts when filtering pages in wordpress admin

I have been able to add drop down lists in the filters available for pages in WordPress admin. The list only displays the root pages. When I select a root page and click on filter, I want to display ...
Eric Malalel's user avatar
0 votes
1 answer
30 views

How to subscribe to an Observable with three different filter conditions

I'm seeing this code, which seems non-compliant to me. I mean, three different subscribes to the same observable in order to handle three filter conditions? My question is: what's the best way of ...
bob.mazzo's user avatar
  • 5,223
0 votes
0 answers
13 views

Connect mat paginator with data coming from an API and use filters on it

I retrieve around 1500 ads via an API and I would like to use a mat paginator to do the pagination without using a mat table (I use cards that I created), I filter the data with several filters that I ...
Fabien.R's user avatar
0 votes
1 answer
72 views

Filtering and Adding Values to Specific Rows in Excel Using Office Scripts

I'm working with Microsoft Excel and trying to use Office Scripts to filter rows based on a specific year and months, and then add a value to a "Quarter 2" column for those filtered rows. ...
Kavinda's user avatar
  • 17
-1 votes
0 answers
10 views

override wocommerce filter range according to visited category price

I am new to Woocommerce. I have used Woocommerce widget filter by price. The shop page shows the range for filtering from the minimum and maximum prices of all the products as expected. But I want to ...
mrshiam's user avatar
  • 11
0 votes
0 answers
19 views

Writing a IBM-Cognos expression to filter dates between custom ranges

I'm trying to write an expression in Cognos Analytics to return my data points within a certain range. My data is organized similarly such as in this picture with dates and names all the way back to ...
Rararasputin9090's user avatar
-1 votes
1 answer
37 views

Issue adding counter to filter function in jquery

The problem is the counter multipleitems. At this time, this variable is counting all td in the pages, instead of counting only the td that has text inside greater than 1, but the filter to add the ....
henry's user avatar
  • 5
0 votes
2 answers
53 views

Java8 - List of Integer values print Matching with 1 result showing 1 matching values

List<Integer> myList = Arrays.asList(10,15,8,49,25,98,98,32,15,212,401,8,001); Output:- 10,15,15,212,401,001 Using java 8 stream api find number matching with 1 each number. Any one answering ...
ganeshan P's user avatar
0 votes
1 answer
16 views

Lookup populated columns and get smallest number of another col

I am fairly experienced Excel formula user of filters and VLOOKUP's, but not sure how to combine the two things together in a formula. what is the lowest age of a specified fruit? Can I make a formula ...
H204fun's user avatar

1
2 3 4 5
642