How to provide a reproducible copy of your DataFrame with to_clipboard()

前端 未结 2 1492
余生分开走
余生分开走 2020-11-21 06:05

2018-09-18_reproducible_dataframe.ipynb

  • This question was previously marked as a duplicate of How to make good reproducible pandas examples.
    • Go to th
2条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-21 06:35

    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

提交回复
热议问题