Comments

Post a comment

Popular Posts

Hi guys..!! This time, I would like to share with you some basic concepts regarding “Strength of a structure “. Actually, I’m working in a ship designing firm for the last 4 years as a structural engineer. And now, I got some idea about the design of structures. Though the examples mentioned may be oriented to ships, the a principles are same and generally applicable. These are the general steps in the design procedure (hand calculation) for any structure. Step1:Selection of material that suits your environment, type of loading, availability... etc. Step2: Find out the loads acting on the structure. Step3: Based on the boundary condition, load acting on the structure and the geometry, find out the stresses acting on each point of structure. Step4: Check the stresses in every point of structures are within the limits of material or not. For better understanding, it will be good to explain each steps in the design mentioned above. So, we can start with material selection.

Sometimes it will be required to invoke batch files from within the Python script file. We can easily achieve this by following these simple steps. 1. Import the module "OS" import os 2. Use the command os.system("batch_file") . Replace the word batch_file with the required file name. In fact it will work with all the dos commands. Please note that the command is in quotes. This is required as the particular command accepts input of data type string. For a batch file to get invoked, it must be in the current working folder of the Python script. Else the working folder must be changed. DOS searches first in the current directory for the requested batch file. If not found, it will look for the file in any of the locations listed in the "PATH" system environment variable.

I wanted to retrieve the yahoo finance data. I installed pandas_datareader and I encountered this ImmediateDeprecationError. Here is how I handled the error.I installed pandas_datareader version 0.5.0 bypip install pandas_datareader==0.5.0

Then I installedpip install fix_yahoo_finance

Here is a sample code then I used for the purpose.

import datetime as dtimport pandas as pdimport pandas_datareader.data as pdrimport fix_yahoo_finance as yfyf.pdr_override()