Skip to content

Instantly share code, notes, and snippets.

@GurjotSinghMahi
Last active February 18, 2021 12:12
Show Gist options
  • Save GurjotSinghMahi/3b17c059d48da67f5e9bb9adb214a3f4 to your computer and use it in GitHub Desktop.
Save GurjotSinghMahi/3b17c059d48da67f5e9bb9adb214a3f4 to your computer and use it in GitHub Desktop.
import pandas as pd
from tabulate import tabulate
# read the csv file
df = pd.read_csv("raw_data.csv")
# displaying the DataFrame
print(tabulate(df, headers = 'keys', tablefmt = 'psql'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment