Wed Nov 06 2024 18:59:18 GMT+0000 (Coordinated Universal Time)
Saved by @signup_returns
import pandas as pd # Sample dictionary data = { 'Name': ['Alice', 'Bob', 'Charlie'], 'Age': [25, 30, 35], 'City': ['New York', 'Los Angeles', 'Chicago'] } # Convert dictionary to DataFrame df = pd.DataFrame(data) # Display the DataFrame print(df)
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments