Python Forum
Databricks, Python Notebook Data file use issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Databricks, Python Notebook Data file use issue
#1
Hi Guys,
G'day
I am using python notebook at the databricks platform,i have imported a csv file which has two columns C1 and C2. After importing I want to use those columns in further coding to apply other requirements on the data. After the import i can see python notebooks has created a table

%sql

/* Query the created temp table in a SQL cell */

select * from table name


with above command i can see C1 and C2 data but i am unable to find the way how can i use them in python normal coding if i need to store both of the columns in an array and apply other restrictions by checks e.g if statements, loops, store them in a list etc

please let me know if so that i can proceed further?

Khalid
[email protected]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 689 Oct-29-2023, 12:40 PM
Last Post: Mark17
Thumbs Up Python 3 Jupyter notebook ternary plot data nicholas 0 930 Jan-21-2023, 05:01 PM
Last Post: nicholas
  Issue in writing sql data into csv for decimal value to scientific notation mg24 8 3,031 Dec-06-2022, 11:09 AM
Last Post: mg24
  How to modify python script to append data on file using sql server 2019? ahmedbarbary 1 1,217 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  Issue in changing data format (2 bytes) into a 16 bit data. GiggsB 11 2,655 Jul-25-2022, 03:19 PM
Last Post: deanhystad
  Delimiter issue with a CSV file jehoshua 1 1,287 Apr-19-2022, 01:28 AM
Last Post: jehoshua
  File handling issue GiggsB 4 1,419 Mar-31-2022, 09:35 PM
Last Post: GiggsB
  How can I solve this file handling issue? GiggsB 17 3,532 Feb-14-2022, 04:37 AM
Last Post: GiggsB
  How to solve this file handling issue? GiggsB 3 1,681 Jan-10-2022, 09:36 AM
Last Post: Gribouillis
  Python issue - Data science - Help is needed yovel 2 2,005 Jul-29-2021, 04:27 PM
Last Post: yovel

Forum Jump:

User Panel Messages

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