Python Forum
Comparing 2 Files - Step 1, import and remove tags
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comparing 2 Files - Step 1, import and remove tags
#4
(Oct-03-2018, 12:10 PM)JP_ROMANO Wrote: Scratch that last entry. Somebody from my engineering team just sent me a .ini to use which allowed me to proceed. The code you posted worked! Python can actually import the contents of a file!

I would suggest not to use the word import when you talk about reading(loading) file. import in Python is a reserved keyword, referring to loading module(s)/API(s), and improper use may confuse the potential reader.
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
RE: Comparing 2 Files - Step 1, import and remove tags - by volcano63 - Oct-03-2018, 12:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Import multiple CSV files into pandas Krayna 0 1,792 May-20-2021, 04:56 PM
Last Post: Krayna
  import numpy in sub-files paul18fr 1 2,122 Aug-06-2019, 12:38 PM
Last Post: chakrimakam
  comparing two columns two different files in pandas nuncio 0 2,472 Jun-06-2018, 01:04 PM
Last Post: nuncio
  import/use data from text files MichealPeterson 1 3,419 Jun-28-2017, 08:51 AM
Last Post: buran

Forum Jump:

User Panel Messages

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