output:where does the system store the data on my machine!?

Need help with C, C++, perl, python, etc?

output:where does the system store the data on my machine!?

Postby say_hello » 2020-03-26 09:41

hello dear all good day -

freshly installed ATOM on Linux: i have to setup a lot. at the moment i have the question - where the data are stored.

for some test i run the code - taken from here:

https://stackoverflow.com/questions/608 ... -of-sate-a

Code: Select all
import pandas as pd

df = pd.read_html("https://www.mohfw.gov.in/")[-1]

df.to_csv("data.csv", index=False)

output - check online: http://www.sharecsv.com/s/09b637c5b534c ... 4/data.csv

question: where does the system store the data on my machine!?

second example: of scraping to csv: https://stackoverflow.com/questions/366 ... v-scraping
I am attempting to scrape some simple dictionary information from an html page. So far I am able to print all the words I need on the IDE. My next step was to transfer the words to an array. My last step was to save the array as a csv file... When I run my code it seems to stop taking information after the 1309th or 1311th word, although I believe there to be over 1 million on the web page. I am stuck and would be very appreciative of any help. Thank you

[file: mso_anu_edu_au.py ]

Code: Select all
from bs4 import BeautifulSoup
from urllib import urlopen
import csv

html = urlopen('http://www.mso.anu.edu.au/~ralph/OPTED/v003/wb1913_a.html').read()

soup = BeautifulSoup(html,"lxml")

words = []

for section in soup.findAll('b'):


print ('success')
print (len(words))

myfile = open('A.csv', 'wb')
wr = csv.writer(myfile)


Code: Select all
[Finished in 29.609s]

question: where does the system store the data on my machine!?
User avatar
Posts: 17
Joined: 2019-10-13 09:58

Re: output:where does the system store the data on my machin

Postby pylkko » 2020-03-27 08:56

I am going to guess that pandas uses pwd to save since you do not specify the absolute path. However, the only way to know this is to read it from the manual/API reference. I strongly suggest that you learn to do this, because you will never get far developing anything if you do not know how to get a definite answer to things like this yourself. Also, a hint: you can install addons to Atom, so that when you hover the cursor over something, it will open a pop-up window which tells you these things (i.e python documentation) so that you don't need to google every single thing you come across.

In the second case it looks like you saved the things to a list variable called "words". This is located in RAM.
User avatar
Posts: 1650
Joined: 2014-11-06 19:02

Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests