Last active
May 12, 2021 17:33
-
-
Save pimlock/d6b4dc6f3179f715dc2ef22d91f13565 to your computer and use it in GitHub Desktop.
Code to list all formats that Pandas supports.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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