Neural Sync Active
Python Refresher for Data Science
Registry Synced
Python Refresher for Data Science
91 words
1 min read
Python Refresher for Data Science
pythonimport numpy as np import pandas as pd # NumPy arrays arr = np.array([1, 2, 3, 4, 5]) print(f"Mean: {arr.mean()}, Std: {arr.std()}") # Pandas DataFrame df = pd.DataFrame({ 'name': ['Alice', 'Bob', 'Charlie'], 'age': [25, 30, 35], 'salary': [50000, 60000, 70000] }) print(df.describe()) # Reading/writing data # df = pd.read_csv('data.csv') # df.to_csv('output.csv', index=False)
Key Libraries
- NumPy: Numerical computing, arrays, linear algebra
- Pandas: Data manipulation, DataFrames
- Matplotlib/Seaborn: Visualization
- Scikit-learn: Machine learning
- PyTorch: Deep learning Join Discord NextML with sklearn