Skip to main content

Questions tagged [filter]

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

0 votes
3 answers
5k views

Filter Select (Drop Down) Options Based on Value Selected in another Select

I have code below that is populating a select with values from the result array. - What I want to do is create an additional select that will filter the results based on the value {tag} selected. For ...
0 votes
1 answer
47 views

Pyspark Filtering Array inside a Struct column

I have a column in my Spark DataFrame that has this schema: root |-- my_feature_name: struct (nullable = true) | |-- first_profiles: map (nullable = true) | | |-- key: string | | |--...
0 votes
1 answer
9k views

vba date filter criteria derived from a cell reference

I'm trying to filter data where one filter criteria - month - needs to be entered by the user in a cell on one sheet in the workbook. If the data is typed into the code, it works fine, as written ...
0 votes
1 answer
44 views

Filter datetime column with object as data type in python

I have a df with a Timestamp and Value columns. Both have the 'object' dtype | Timestamp | Value | -------------------------------------- | 8/21/2023 12:00:00 AM | a | | 11/...
2 votes
2 answers
1k views

Hugo exclude file types from page bundle?

I'm generating a static website with Hugo. Here's the structure of my content folder: content/ └── post ├── post01 │ ├── image.xcf │ ├── image.jpg │ └── index.md └── post02 ...
1 vote
0 answers
17 views

Filtering across multiple fields from a subquery where there is no related field

I'm trying to find a portable way to express the following record filtering query using the Django ORM. The intention is to: take a subquery of FilterSpec (eg. with a common FilterGroup) find all ...
0 votes
0 answers
17 views

How do I add built-in Google protection for my webscraper to filter out NSFW/illegal content?

Currently I'm coding a webscraper, it only scans the first 10 pages of Google so I'm not all too worried, but it downloads pdfs and I want to add some protection for filtering out NSFW content/content ...
1 vote
2 answers
44 views

How to select the row with specific condition and the row just above? [closed]

Here is how I defined my condition , but I need the row just above as well. There are many observations per ID. data2<- data2 %>% group_by (ID_number) %>% filter(time_diff_hour > 8....
2 votes
3 answers
386 views

Woocommerce change in stock text by category

So how a title says, I have a multiple product "test" website. And each product have " X in stock " in shop page. My website is filtred by category like "Floors" and &...
-3 votes
1 answer
65 views

Does filter have a way to export the "list" one element at a time?

On a practice exercise about prime numbers I found out that filter does not return a list itself and I need to do: list(filter()) to obtain that list. I do the exercise twice, once with a for loop: ...
2 votes
2 answers
516 views

Android Studio Logcat Filter exact tag

Is it possible to filter an exact tag in Android Studio Logcat? I'm looking for the tag "lights" but every tag containing "lights" like "lightService" is also printed.
0 votes
0 answers
28 views

Cannot use IN function for Partition Filter of a View Table in BigQuery

so I have a view table named table_1 and it has a partition field called business_date. Thie table_1 is constructed by using a raw table named data_mart.customer_raw. There are a lot business needs ...
1 vote
2 answers
41 views

How to keep the first appearance of a value while filtering everything else out in R?

This is the appearance of my dataset currently. I want to include patient 1 data until the first '1' occurs in 'test.result' then remove any information about patient 1 after that. current dataset ...
6 votes
1 answer
8k views

NGINX Header and Body Filter Modules

I've been coding an NGINX filter module that can read/write cookies for incoming requests. If a particular cookie isn't set correctly (i.e. authentication cookie), it will set the outgoing header ...
-2 votes
0 answers
55 views

How can I improve this code for detecting swear words [closed]

I know there are only "idiot" and "idiotic" added to the list but its because adding words takes a lot of time and this is an test this is my code: // this code filters swear words ...

15 30 50 per page
1
2 3 4 5
2160