Find Jobs
Hire Freelancers

Python If Statement Question

$10-30 USD

Cancelled
Posted over 6 years ago

$10-30 USD

Paid on delivery
I'm trying to create a table plot by python script as below. PivotTable is a dynamic table, it sometimes include column ENT_MAT_CATG, sometimes not. This script is not working when it doesn't have ENT_MAT_CATG. Just need solution to make it work. from [login to view URL] import * from [login to view URL] import TablePlot def getDataTable(tableName): try: return [login to view URL][tableName] except: raise ("Error - cannot find data table: " + tableName) ## use table myDataTable = getDataTable("PivotTable") dataTable= [login to view URL][TablePlot]().[login to view URL] table = [login to view URL][TablePlot]() columns = [login to view URL] [login to view URL]() if [login to view URL]["PivotTable"].Columns["ROW_ID"] != None: [login to view URL][TablePlot]().[login to view URL]([login to view URL]["ROW_ID"]) if [login to view URL]["PivotTable"].Columns["MATERIAL_NUM"] != None: [login to view URL][TablePlot]().[login to view URL]([login to view URL]["MATERIAL_NUM"]) if [login to view URL]["PivotTable"].Columns["ENT_MAT_CATG"] != None: [login to view URL][TablePlot]().[login to view URL]([login to view URL]["ENT_MAT_CATG"]) for col in [login to view URL][TablePlot]().TableColumns: print [login to view URL]
Project ID: 15369980

About the project

2 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $50 USD for this job
User Avatar
Please click on "CHAT" button so that I can ask a few questions concerning your project. I provide exceptional quality python on time, leaving you fully satisfied that you got your money’s worth! Relevant Skills and Experience app Proposed Milestones $60 USD - 1
$60 USD in 1 day
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
Piscataway, United States
5.0
2
Payment method verified
Member since Jun 7, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.