Copying MultiIndex dataframes with pd.read_clipboard?
问题 Given a dataframe like this: C A B 1.1 111 20 222 31 3.3 222 24 333 65 5.5 333 22 6.6 777 74 How do I read it in using pd.read_clipboard ? I've tried this: df = pd.read_clipboard(index_col=[0, 1]) But it throws an error: ParserError: Error tokenizing data. C error: Expected 2 fields in line 3, saw 3 How can I fix this? Other pd.read_clipboard questions: How do you handle column names having spaces in them when using pd.read_clipboard? How to handle custom named index when copying a dataframe