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
  import data (.csv) into Jupyter notebook oranstprotonme 2 1,254 Aug-14-2024, 07:08 PM
Last Post: oranstprotonme
  To fetch and iterate data from CSV file using python vyom1109 3 1,050 Aug-05-2024, 10:05 AM
Last Post: Pedroski55
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 2,310 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 8,731 Oct-29-2023, 12:40 PM
Last Post: Mark17
Thumbs Up Python 3 Jupyter notebook ternary plot data nicholas 0 1,854 Jan-21-2023, 05:01 PM
Last Post: nicholas
  Issue in writing sql data into csv for decimal value to scientific notation mg24 8 5,742 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 2,024 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  Issue in changing data format (2 bytes) into a 16 bit data. GiggsB 11 5,051 Jul-25-2022, 03:19 PM
Last Post: deanhystad
  Delimiter issue with a CSV file jehoshua 1 2,443 Apr-19-2022, 01:28 AM
Last Post: jehoshua
  File handling issue GiggsB 4 2,555 Mar-31-2022, 09:35 PM
Last Post: GiggsB

Forum Jump:

User Panel Messages

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