Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maneeshdisodia/5742987e0f7292f17449aaba3ae10775 to your computer and use it in GitHub Desktop.
Save maneeshdisodia/5742987e0f7292f17449aaba3ae10775 to your computer and use it in GitHub Desktop.
Load firestore table to pandas dataframe
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment