if you do something like print(df.head(20))
and paste the output in code format, then we can use pd.read_clipboard()
to load the data into a dataframe. This approach works for the vast majority of questions posted under the pandas
tag but fails miserably for questions involving multiindex