You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to import data frame into the collection that i have already created, but the data is not getting imported into the collection.
I am using following code:
with client.batch.dynamic() as batch:
for index, row in df1.iterrows():
properties = {
"a": row["a"]
}
Can you tell me which notebook you're following along so I can help?
Here is a snippet for batch importing from the docs:
data_rows = [
{"title": f"Object {i+1}"} for i in range(5)
]
collection = client.collections.get("MyCollection")
with collection.batch.dynamic() as batch:
for data_row in data_rows:
batch.add_object(
properties=data_row,
)
I am trying to import data frame into the collection that i have already created, but the data is not getting imported into the collection.
I am using following code:
with client.batch.dynamic() as batch:
for index, row in df1.iterrows():
properties = {
"a": row["a"]
}
Here, I am not getting anything in collection.
a = client.collections.get("test1")
aggregation = a.aggregate.over_all(total_count=True)
print(aggregation.total_count)
here it is total count is 0.
can anyone please help me in this.
The text was updated successfully, but these errors were encountered: