Python Forum
Car Rental Scheduling and compatibility - Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Car Rental Scheduling and compatibility - Python
#2
Not sure about the code, it is hard to understand, at least, for me. However, you can
improve some steps, e.g. inclusion check could be done using .isin method, e.g.

df['B'] = df['Model Code'].isin(ListB) # optionally, you can convery bools to ints by applying `.astype(int)`
Reply


Messages In This Thread
RE: Car Rental Scheduling and compatibility - Python - by scidam - Jul-30-2019, 12:59 AM

Forum Jump:

User Panel Messages

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