Python Programming
Articles
FastAPI Streaming Response: Error: Did not receive done or success response in stream
Geoanalytics with geopandas and ABS Public Data in Python
GenAI: Generate SQL from Text via Ollama Python Library on Local
Pandas DataFrame aggregate a list column to a set
This code snippet shows you how to group a pandas DataFrame and then aggregate a column with list or array type to a set (with duplicates removed) or a list. To implement it, we can first expode the column (list type) and then use groupby to create a grouped DataFrame and then aggregate using set or list or a combination of both. Input `` category users 0 A [1, 2] 1 B [3, 4] 2 C [5, 6, 7] 3 A [1, 8, 1] 4 B [1, 6, 9] ` Output ` category usersset userslist 0 A {8, 1, 2} [8, 1, 2] 1 B {1, 3, 4, 6, 9} [1, 3, 4, 6, 9] 2 C {5, 6, 7} [5, 6, 7] ``
Azure App Service IIS Log Analytics using Pandas
Python: Read Data from MS Access Database via ODBC
Python: Read Data from Oracle Database
Pandas DataFrame Plot Heatmap using Seaborn
Torchvision error: Could not find module image.pyd
Create Environments with Different Python Versions in Anaconda
Call SQL Server Stored Procedure in Python
Read Email from Microsoft 365 via Microsoft Graph API
In article Python: Send Email via Microsoft Graph API, I provided detailed steps to send email through msal package. In this article, I am going to show you how to read emails from Microsoft 365 via Microsoft Graph API.