Monday, July 31, 2023

More Pandas

 Can't keep an ardent coder down: did Pandas 4.

                                                                         





                                                                                   

*    *    *


                                                                     








Sunday, July 30, 2023

Latitude

 A parent's work is never done. Lyse is travelling from Monreal Qc to

Whitehorse YT today, and while she was packing, yesterday, I valiantly launched 

into an explanation of how the temperature in Whitehorse will be different. Did a passable 

job on it: there days in Whitehorse are currently longer by 2 1/2 hours so that - 

climate change aiding - the highs will be similar to those in Montreal. She should expect,

however, the nights to be colder because she will be further North. Wasn't too sure about 

those colder nights... Here is what Chatgpt had to say on the topic:


                                                                


The temperature difference from the pole to the equator depends on the Sun’s energy and the energy retained in Earth’s systems. The curvature of the Earth causes the Sun’s energy to spread out over larger areas with increasing latitude. The greater the land area the energy spreads across, the lower the energy per unit area. Ultimately, the temperature in an area depends on the amount of the Sun’s energy reaching the surface in that area. The amount of solar energy in a given area is greater at the equator than in an equal area at the poles, which is why the equator temperature is warmer than the polar temperatures. Axial Tilt and Sun Energy The Earth’s axis tilts approximately 23.5° from vertical relative to the plane of the Earth’s orbit around the sun. This axial tilt means that during the Earth’s journey around the sun, the poles receive varying amounts of sunlight. The equator, however, receives relatively consistent sunlight all year. The consistency of energy means that the equator’s temperature stays relatively constant all year. The polar regions, on the other hand, receive less of the Sun’s energy and only receive that energy for part of the year. At latitudes higher than 60°N and 60°S, the Sun’s energy spreads out over large areas due to Earth’s curvature and axial tilt1.

During summer, the temperature at North Pole averages 32°F (0°C) while at South Pole it averages −18°F (−28.2°C). During winter, North Pole averages −40°F (−40°C) but South Pole averages −76°F (−60°C)1. Geography controls temperature difference between North and South Poles. North Pole is located in ocean while South Pole lies on a continental mass surrounded by ocean. Sea water below Arctic ice cap is slightly warmer than ice and warms air above. Land mass of Antarctica reduces influence of ocean. Average elevation of Antarctica, about 7,500 feet (2.3 kilometers), also lowers temperature at South Pole1.

                                                            *     *     *





                                                                                 


                                                                        


                                                                             


                                                                               

*     *     *

I expect Lyse will be explaining it to me, when she gets back. How is life organized

at these latitudes ??

Saturday, July 29, 2023

RainyD

 Friday, July 28 2023 and many Parisians want to leave on vacation.

Only, it rained...a LOT!



Friday, July 28, 2023

BhagavadG

 


                                                                                 



                                                                                    




                                                                                

source: Chatgpt






Thursday, July 27, 2023

Less Efficient

 Hotter temperatures may not have damned summer travel altogether, but

one does need to understand the effects of heat on the efficiency of jets.






Work_Cycle

 It all comes down to the difference between 'export' and 'save'.

Below, I wrote up my table in the simplest way possible, as a csv file.

I then imported the file to a spreadsheet, and colored it. I can then export

my shiny product, and show it tio others. On the spreadsheet, I do a save

to odf (Open document), to be able to return to my project. Work on...

                                                              







                                                                                




*     *     *
The beauty of spreadsheets is that they do repetitive tasks in the blink of an eye.

Below, it will increment Fahrenheit by 1 by pulling the little black square. I just

need ti select 80 and 81, so that it knows I want an incement of 1.

For the Celsius, I need to provide a formula, and an example of its use. One

refers to the cell by clicking on it. Once the formula is entered, pressing 'enter'

gives the solution, and pulling the little black square repeats the operation for

all the Celsius values.

I choose the Celsius column by its number,  set decimals to 0 on Format, cells...

                                                                        




                                                                                 
        









Wednesday, July 26, 2023

Hot Water

 I made a litte chart I keep next to my computer as I read

about weather-related events around the globe, in degrees:


Fahrenheit   Celsius

 80               27

 90               32

100              38

110              43

120              49

                                                 *     *     *

It's almost embarassing to mention: Montreal is expecting a heat

day, today, with a high of 29°C. Heck, the shoreline water in Florida is hotter

than that, at 101°F. What am I complaining about...

Florida ocean records ‘unprecedented’ temperatures similar to a hot tub | Florida | The Guardian


                                                *     *     *

Waiting on the US Federal Reserve to pronounce on rates, later today.

                                                          


Rate hike to 5.25%. Possibly one more next November.

Tuesday, July 25, 2023

Keeping Track

 


*     *     *

PANDAS3

As usual, once inside a function one can see the argument sequence with Shift and Tab.

If one wants to import a csv file to a notebook, one needs to upload it to Jupyter

first using the upload button on the top right of the intro page.

                                                                





*     *     *

I was asked about csv files. csv is a file format - comma separated values - often used

to store tabular data. In and of itself, here is no formating; but it is used by Excel and

other spreadsheet prpograms for easy storage and retrival.

In Notepad:

                                                                         

In a spreadsheet:
                                                                                     

Definition:

                                                                                 

                                              source: Wikipedia.




Monday, July 24, 2023

Pandas2

                                                                                       


         To see what the requirements are for the Series function, go inside

         the function brackets and hold Shift and Tab:    

                                                          


                                                                              


Rock On!

 

Rhodes may be burning, but things are rocking in the Gaspésie peninsula...

                                     https://www.facebook.com/stories/2323107607946931/UzpfSVNDOjgxMjE3ODA3MzY5MzIzNQ==/?view_single=1


https://www.facebook.com/stories/2323107607946931/UzpfSVNDOjE1MDgzNDQ5ODAzMTc3OQ==/?view_single=1

Sunday, July 23, 2023

The Best


https://www.quora.com/Is-it-true-that-Jupiter-is-so-large-that-it-does-not-orbit-around-the-sun


                                                       *     *     *

One can see, from the right-hand box near the top,, what environment one is running the

Jupyter Notebook from. If I run from the Jupyter server directly, I am in a normal

python environment. If I run from the desktop, I can run from the sandbox environment

I have created. I do a download to save any new version to my desktop...

                                                             





Saturday, July 22, 2023

Rhodes

 





source: CNN


                                                                                     

source:  Le Figaro

Yo Pandas!

 Went back to the Codemy series on pytorch, secure in the knowledge

that I was but a few steps away from completion. Well, no. In order to set up

the learning environment for the data, I need to use pandas, which is a data

manipulation library: 28 little tutorials in all.


That's computers in a nutshell; always need to learn more...🙇‍♀️

                                                               *     *     *

First, one needs to install Jupyter notebooks and pandas. In my case,

this was already done because I used anaconda to install python on my

new computer. (A lifesaver to avoid all those 'path' problems!)

                                                          


In cases where one needs a virtual environment, one opens the anaconda navigator.

(One previously created a folder for the project and used cd to navigate to it.)

From the navigator:


                                                           




One can then open the project form the project file...