Skip to content

Instantly share code, notes, and snippets.

@baobuiquang
Created August 29, 2024 01:26
Show Gist options
  • Save baobuiquang/4be36bce16a2cde4150cdcb0d3e0b9d1 to your computer and use it in GitHub Desktop.
Save baobuiquang/4be36bce16a2cde4150cdcb0d3e0b9d1 to your computer and use it in GitHub Desktop.
Python Quickcodes
# Create folder
import os
os.makedirs("my/path", exist_ok=True)
# Read and write CSV
import pandas as pd
df = pd.read_csv('input_data.csv', encoding='utf-8')
df.to_csv('output_data.csv', encoding='utf-8', index=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment