Comments (6)
Something like this
from qdrant-client.
import pandas as pd
class DataFrameFilter:
def __init__(self, dataframe):
self.dataframe = dataframe
self.filters = []
def filter_by_column_value(self, column, value):
"""Filter rows where the specified column matches the given value."""
self.filters.append(lambda df: df[df[column] == value])
return self
def filter_by_custom_function(self, filter_function):
"""Apply a custom filter function to the DataFrame."""
self.filters.append(filter_function)
return self
def apply_filters(self):
"""Apply all accumulated filters and return the filtered DataFrame."""
filtered_df = self.dataframe
for filter_func in self.filters:
filtered_df = filter_func(filtered_df)
return filtered_df
from qdrant-client.
If this had just also had the data_dir as an attribute / didn't feed it through as an argument, it would have worked. With the above pattern
from qdrant-client.
Hi @GeorgePearse , long time no see :)
Are you sure it is the right repository for this issue?
from qdrant-client.
Ahaha, definitely not!
from qdrant-client.
Cheers for flagging
from qdrant-client.
Related Issues (20)
- qdrant cloud: retrieve collection metrics via python client HOT 1
- NotImplementedError: cannot instantiate 'WindowsPath' on your system HOT 2
- pydantic <=2.6.0 converts bool to 0/1 and breaks bool filters HOT 2
- Qdrant Scroll Method Timeout HOT 8
- Mounting Local Volume for Langchain Embeddings in Docker Container HOT 8
- can not get "time" from api using the sdk HOT 4
- Extra inputs are not permitted HOT 5
- `init_from is deprecated` warnings on create collection calls HOT 2
- fix orderby conversion with pydantic 1.10.x HOT 1
- The problem I encountered when using celery task to execute qdrant in fastApi HOT 1
- Hybrid search throws error when `prefer_grpc=True` HOT 5
- Missing Example for Using ColBERT with Python Client in Blog and Documentation HOT 1
- [BUG] test_referenced_vectors crashes with validation errors on pydantic v1.10.x HOT 1
- Setting Parameters in Qdrant Client running in " Memory" Issue: HOT 1
- bug: qdrant using poetry HOT 6
- add tests for query_points with Document HOT 1
- Unlock pyright dependency
- query_points raise exception: ResponseHandlingException: 1 validation error for ParsingModel[InlineResponse20021] (for parse_as_type) HOT 12
- Support async in upload_collection HOT 1
- Limiting RAM in Qdrant
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qdrant-client.