Comments (6)
Something like this
![image](https://private-user-images.githubusercontent.com/47161914/298169901-8add7629-e896-447d-88e0-7aa147a30964.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDc3Mjk3NjMsIm5iZiI6MTcwNzcyOTQ2MywicGF0aCI6Ii80NzE2MTkxNC8yOTgxNjk5MDEtOGFkZDc2MjktZTg5Ni00NDdkLTg4ZTAtN2FhMTQ3YTMwOTY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjEyVDA5MTc0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNhYjg5YmRhZWQ2MWY0M2FlZDFhOGE3YzFjM2YxMjI1YTdhZDJjZjNhZjlhZDYwZGFmOWFkYTdlNmYzMDdiODQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HWHShJj7KmgzRzs0T9iZ1wIw-2aJQbK8y79vqjphDpo)
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
![image](https://private-user-images.githubusercontent.com/47161914/298170917-1223f013-fef5-4757-a57e-80af7a84dea7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDc3Mjk3NjMsIm5iZiI6MTcwNzcyOTQ2MywicGF0aCI6Ii80NzE2MTkxNC8yOTgxNzA5MTctMTIyM2YwMTMtZmVmNS00NzU3LWE1N2UtODBhZjdhODRkZWE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjEyVDA5MTc0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3MGM5NGEzZTUyZWEwMGQ1OTFiOWU0NzNhZWQ0Yzg1ZTZhOTZlYTRjN2VmNmIyODJjNDVhNzMwZTViYzgwMGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mcKvUHEVFjkfjMo2-Zv6OVl8t6LGyEgGayM5jL_r0nk)
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)
- Add sparse vectors to migration tests HOT 1
- [Backward compatibility] Allow extra fields for internal pydantic models HOT 1
- Fine-grained timeout for httpx HOT 2
- individual shard_key when adding points HOT 4
- Add information about requested URL to UnexpectedResponse exception to simplify troubleshooting
- how to get shard keys for collection when using custom sharding HOT 1
- upload_collection can't be launched with parallel and without explicit ids
- Regression: payloads cannot contain python builtin datetime objects in 1.7.1 HOT 2
- Error: Payload Limit Exceeded HOT 16
- Unable to close grpc_channel. Connection was interrupted on the server side HOT 12
- grpc options are not parsed correctly when https is set
- PointStruct is very slow HOT 8
- update scoring in local mode in discovery api HOT 1
- Missing import statement in documentation (Get Started) HOT 2
- Local Qdrant db Error on loading: KeyError: '__pydantic_fields_set__' HOT 4
- query_text param not working for qdrant_client.search HOT 8
- Upgrade fastembed version from 0.1.1 to 0.2.1 (latest) HOT 3
- Deleting points by ID not working HOT 3
- Trigger nighly tests against latest qdrant dev build
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.