0

I am trying to use few lines of a data online in pycharm. i copied the lines i needed, went to pycharm

import pandas as pd
from pandas import Series, DataFrame

df = pd.read_clipboard()
print(df)

Output :

line 2872, in _alert_malformed
    raise ParserError(msg) pandas.errors.ParserError: Expected 4 fields in line 4, saw 5. 
Error could possibly be due to quotes being ignored when a multi-char delimiter is used.
thebjorn
  • 26,297
  • 11
  • 96
  • 138
  • `read_clipboard()` is working already, and it's complaining that your clipboard does not have proper format of a dataframe. Specifically, `line 4` has more fields than the others. – Quang Hoang Jul 23 '20 at 11:41
  • which means what i copied from the internet, should be edited before copying to clipboard right? – Oluwakemi Farinde Jul 23 '20 at 12:09

0 Answers0