May-10-2018, 09:39 AM
(This post was last modified: May-10-2018, 10:07 AM by petertyler.)
You could try this
The original csv file might also be contributing to the issues as well - download Notepad++
Create a new file in Notepad++ -> Go to Encoding -> Encode in UTF-8 -> Copy-paste the contents -> save the file as .csv
from pathlib import Path filename = Path("source_data/csv/raw_data.csv") data = pd.read_csv('filename', encoding='utf-8')
The original csv file might also be contributing to the issues as well - download Notepad++
Create a new file in Notepad++ -> Go to Encoding -> Encode in UTF-8 -> Copy-paste the contents -> save the file as .csv