Re: TIME IN XARRAY

2021-04-18 Thread Gys
et the month from the string strDate print("Month ",strDate[5:7]) print() # # Convert Event to a datetime object Event="1979-01-01T00:00:00.0" dtmDate=datetime.strptime(Event,"%Y-%m-%dT%H:%M:%S.0") print("datetime object",dtmDate)

Re: file location/directory

2021-03-16 Thread Gys
lines : PYTHONPATH="${PYTHONPATH}:/path/cool/python/package/" export PYTHONPATH These checks the settings : import os import sys print(sys.path) print(os.environ.get('PYTHONPATH', '')) -hth Gys -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I read .csv files

2021-03-16 Thread Gys
stable/index.html> Hands on example : <https://chrisalbon.com/python/data_wrangling/pandas_dataframe_importing_csv/> -hth Gys -- https://mail.python.org/mailman/listinfo/python-list

Re: Convert a scientific notation to decimal number, and still keeping the data format as float64

2019-10-18 Thread Gys
ara in Spyder(Python 3.6) : x=4.449e-05 print(x) 4.449e-05 print("{0:8.5f}".format(x)) 0.00005 print(x) 4.449e-05 hth Gys -- https://mail.python.org/mailman/listinfo/python-list

Re: Books for Python 3.7

2019-07-15 Thread Gys
. In the meantime I use Gitlab for finding code snippets. I use these beginner guides : https://www.python.org/doc/ https://www.tutorialspoint.com/python3/ https://overiq.com/python-101/ https://www.pythonforbeginners.com/ https://www.programiz.com/python-programming/tutorial hth Gys -- https: