Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing data
#2
You could try this
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
Reply


Messages In This Thread
Importing data - by Scott - May-10-2018, 08:37 AM
RE: Importing data - by petertyler - May-10-2018, 09:39 AM
RE: Importing data - by Scott - May-11-2018, 03:37 AM
RE: Importing data - by petertyler - May-12-2018, 11:13 AM
RE: Importing data - by snippsat - May-12-2018, 11:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ssues with importing data from ODBC Slavek_d 1 1,516 Feb-01-2022, 09:57 AM
Last Post: ibreeden
  Importing python data to Textfile or CSV yanDvator 0 1,862 Aug-02-2020, 06:58 AM
Last Post: yanDvator
  Importing data from a text file into an SQLite database with Python macieju1974 7 4,405 Jun-29-2020, 08:51 PM
Last Post: buran
  Importing csv data into sql lite cant figure it out. jimmyvegas29 5 3,948 Jul-16-2018, 02:02 AM
Last Post: jimmyvegas29

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020