Skip to content

Instantly share code, notes, and snippets.

@pimlock
Last active May 12, 2021 17:33
Show Gist options
  • Save pimlock/d6b4dc6f3179f715dc2ef22d91f13565 to your computer and use it in GitHub Desktop.
Save pimlock/d6b4dc6f3179f715dc2ef22d91f13565 to your computer and use it in GitHub Desktop.
Code to list all formats that Pandas supports.
import pandas as pd
df_list = pd.read_html(
"https://pandas.pydata.org/pandas-docs/stable/user_guide/io.html",
match="Format Type"
)
print(f"Pandas can read data in {len(df_list[0])} formats: {nl + nl.join(df['Data Description'].tolist())}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment