Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to read file over two directory back

. = current directory
.. = parent directory
../ = gets you one directory back.
Chain ../ as many times as necessary to go up 2 or more levels.
------------------------------------------------------------------------
For example this is directory tree
parent
|-sub_parent
| |-current
|   |-working.py <-(file you are in)
|-index.csv

You are in working.py and you want to read index.php, you can chani "../" like this.
data = pd.read_csv('../../index.csv')
Comment

PREVIOUS NEXT
Code Example
Html :: abanner html code 
Html :: acept img html 
Html :: tailwind tag input 
Html :: http://arnav.tcode.in/ 
Html :: bootsta 
Html :: adding bootstrap to macros html in flask 
Html :: place autocomplete showing city and country only 
Html :: nativescript scrollview full height 
Html :: How do you set a focus keyphrase in html site 
Html :: How to add countdown timer lock in blogger 
Html :: html,css,javascript top 50 quetions 
Html :: Open Dropdown pop up upwards forcely 
Html :: create external application revit api 
Html :: angular right click not working 
Html :: typo3 news search form params lost pagination 
Html :: html to editable react-draft-wysiwyg 
Html :: falling star animation code 
Html :: Center-aligned media 
Html :: pros/cons of using `.createElement()` and `append()` vs. `.innerHTML`? 
Html :: html css slider 
Html :: html get button text 
Html :: easyui how to make panel collapsible 
Html :: custom html in swal2 vue 
Html :: html make ordered list <ol right to left RTL arabic 
Html :: devexpress aspxdatagridview set column alignment 
Html :: vuejs @change only one time 
Html :: best html books 
Html :: status_tag activeadmin 
Html :: site.baseurl page.image_path 
Html :: How To Create "Empty" <Label Tag Without Name 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =