Python Forum
loading a csv file into python from pandas. Variable is not recognized
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loading a csv file into python from pandas. Variable is not recognized
#3
There were 2 issues in what u were implementing.

1. The column name "country" starts with a small 'c', whereas u were using 'C' while using the statement "Country" in brics. As python is case sensitive, this shall now be "country" in brics.

2. The column named "country" is having an extra space "country<space>" which needs to be removed.

This shall solve ur problem.

Regards
Reply


Messages In This Thread
RE: loading a csv file into python from pandas. Variable is not recognized - by kus - Apr-19-2019, 04:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Checking for a recognized text in a Dataframe KDE 0 1,548 Aug-31-2021, 11:19 PM
Last Post: KDE
  How to import an xml file to Pandas sjhazard 0 2,368 Jun-08-2021, 08:19 PM
Last Post: sjhazard
  Python - Pandas writing blank files to file tdunphy 0 2,006 Jan-14-2021, 12:11 AM
Last Post: tdunphy
  JSON file Loading issue punna111 4 8,617 Jun-29-2020, 08:07 AM
Last Post: buran
  how to solve the 'NO SUCH DIRECTORY OR FILE' in pandas, python MohammedSohail 10 15,449 May-08-2020, 07:45 AM
Last Post: nnk
  Loading .csv data using Pandas zaki424160 1 2,919 Jul-15-2019, 09:48 AM
Last Post: perfringo
  Pandas melt only on one variable (leaving other in long format) amyd 0 1,959 May-08-2019, 12:10 PM
Last Post: amyd
  Read CSV data into Pandas DataSet From Variable? Oliver 7 13,979 Jul-05-2018, 03:29 AM
Last Post: answerquest
  loading a 3D array from a bin file Mark3232 1 4,729 May-04-2018, 11:36 AM
Last Post: j.crater
  Loading HUGE data from Python into SQL SERVER Sandeep 2 21,115 Jan-13-2018, 07:52 AM
Last Post: Sandeep

Forum Jump:

User Panel Messages

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