Created
June 28, 2020 01:03
-
-
Save romicofre/ee80100b62b5fdbed42218e8239df94e to your computer and use it in GitHub Desktop.
Load firestore table to pandas dataframe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from google.cloud import firestore | |
db = firestore.Client() | |
users = list(db.collection(u'users').stream()) | |
users_dict = list(map(lambda x: x.to_dict(), users)) | |
df = pd.DataFrame(users_dict) |
Exactly what I was looking for, thank you!
Thanks! In my case I needed lowercase .client()
perfect, thanks
Thank you, and if I need to add the ID also?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!