Tag Archives: The data analysis

MAMP failed to start: Apache could’t be started. Please check your MAMP installation and configuration

Solution 1:

In / applications / MAMP / library / bin, find the file envvars and rename it to_ envvars。

It doesn’t work for me.

Solution 2:

sudo /Applications/MAMP/bin/startApache.sh

or

sudo /Applications/MAMP/Library/bin/apachectl start

There is no display.

Solution 3:

Change document root to a fixed address that you don’t know how to delete.
MAMP > Preferences > Server > Document Root

Still failed.

Solution 4:

sudo /Applications/MAMP/Library/bin/apachectl restart

report errors:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
httpd not running, trying to start

I solved it lazily

Final solution

I had a video conference with the professor. He asked me to come to him

    delete the installation package, turn off the computer, wait for five minutes, and then turn on the system. If there is an update, update it, and then download the MAMP software again

    Well I guess it’s the system update that works, updating Catalina to Big Sur
    as a person who doesn’t shut down several times a year, and who can delay several versions of the update
    After doing all the above honestly In front of the professor, there was no problem at all, and then he was connected
    for a time, I was a little embarrassed, and I told him by email how many attempts I had made I’m impressed

    reference resources

      Apache server cannot start why won Apache server start in MAMP

Come and watch! Let’s see how people use Python to visualize the congestion situation of cities

Come and watch! See how the guy visualizes congestion in cities using Python
Preface one, climb congestion index two, data visualization three, build display website to write in the last

preface
Just today, I felt the deep malice from the traffic jam There is nothing wrong! I was stuck in traffic for almost 3 hours today and my best date just went up in smoke.

br bb0

In the next two years, how do data analysts hang up highly educated engineers? be convinced!

Summarize the necessary skills of data analysis, I hope it can help you.
One, data analysis three musketeers
We will analyze the mapping process for Pandas data, including data loading, cleaning, storage, conversion, merging, and remodelling. We will also analyze the mapping process for Pandas data

Second, the MySQL
Multi-platform installation and deployment of MySQL visualization tools and data import and export of multi-table relationship design and field constraints SQL to achieve sales task distribution system

III. Visualized package technology arrangement
Use Django to build a Web project, Web interface to show the principle of communication between browser and Web server routing, view, template, model association principle Seaborn various graphs to create Tableau worksheets, dashboards, story details

Fourth, quantitative analysis data collection
Optimal design algorithm for mathematical modeling of the shape and size of cans Detail the evaluation criteria of the algorithmic model for the study of strategic financial quality factors of “one price”

Five, Hadoop comprehensive analysis
MapReduce and Python programming in detail on the Cascading MapReduce principle analysis Cominer analysis of Spark analysis of SQL distributed and SQL query engine analysis
4. Selected video tutorials + learning documents


These [learning content], only for everyone to study and exchange use, trouble and advertising party please detour!!

Click on the link and leave your contact information, can rapid consultation, free nyc: https://t.csdnimg.cn/StoO

↓↓↓ ↓ with emphasis on ↓↓↓
Today’s society needs, is not only can write code code farmers, but technical and understand the business, can through data analysis, optimize the code to solve the actual business problems of complex talents!
Whether you do research and development, system architecture, or do products, operations, or even management, data analysis is the basic skills, it is no exaggeration to say: data analysis ability, can let you at least the next 10 years of technical career skills.
The author has made an exploratory analysis of the relevant information on the net specifically: 5W monthly salary is only in the middle position. If you want to change careers or work in the data industry, but don’t know where to start, I recommend you study CSDN. It is easier to enter the industry and has broad employment prospects.
Why do I recommend this course to you?
In fact, in any enterprise, each operation link will produce its corresponding data. When there is a problem in the enterprise, correct and complete data analysis can help the decision maker to make a wise and favorable decision. Data analysis plays a vital role in an enterprise.
Therefore, data analysis is like the doctor of the enterprise, which plays a vital role in the survival and development of the enterprise.
Based on this idea, I recommend CSDN’s self-run course “Data Analysis Training Camp” to you, which covers a wide range of content and integrates data collection, cleaning, sorting, visualization and modeling to help you establish the underlying logical thinking of data analysis!

This course is based on the analysis and mining methods often encountered in Python3, teaching you to find problems, form solutions, take actions, feedback and evaluation through data analysis, and form a closed loop, so that your data can give full play to the business value!

 
How is the course planned?
Scientific and systematic curriculum design
It covers all the technologies that will be applied in the jobs of data analysis engineers in the market, and focuses on the interview questions that must be asked and often asked by algorithms.
Real Stimulating Enterprise Projects
Across real business scenario projects such as finance, advertising, e-commerce, competition and academic experiment, on the basis of the existing courses, the real time training of 11 enterprise-level projects of hot technology has been added.
# Accompany you with a very conscientious teaching service #
Online learning, one-on-one Q&A, real project practice, regular testing, head teacher supervision, live Q&A, homework correction, all of these are designed to ensure that you can follow, finish and learn in the 12 weeks.
In addition, CSDN will also invite some industry celebrities to hold closed-door sharing meetings for students from time to time. Maybe just a little experience sharing in job hunting and daily work can help you avoid many detours.
Lecture given by engineers of front-line big factories
Leaders of front-line big companies such as BAT, Didi and netease serve as teaching tutors, and give in-depth explanations according to the requirements of market data mining positions, so as to directly understand the selection tendency of famous enterprises.
Senior headhunters recommend and guide employment
One to one employment program + resume modification + mock interview + interview tape copy + psychological counseling + free guidance work problems until probation!
Send: 50+ Interview Intensive Topics & AMP; 200+ practical interview question training
In the process of job hunting, CSDN is like your “coach”, providing targeted assistance services in every link of your job hunting.
Again! The most recent Talent Training Program has only 100 places available on a first-come-first-served basis! But also can enjoy super low – price benefits! (It is said that there are only a dozen spots left.)
If you have more questions, such as price, suitable for study, detailed study outline, you can scan the code and reply to the corresponding question.
Emphasis: if you want to test whether you are suitable for the industry, the instructor will send you an audition class + introductory materials + learning map + high-frequency interview questions based on your foundation, these materials are enough to help you test yourself whether you can engage in the relevant position!

Click on the link and leave your contact information, can rapid consultation, free nyc: https://t.csdnimg.cn/StoO

How to handle when select single is not allowed in loop

What happens when select single is not allowed in the LOOP
Examples: Materials are available at a variety of prices and have expiry dates

    this part of the first I contact processing, was conducted in DSO itself in a transformation:
    first result_package according to the actual delivery date to heavy, and then for the first and the last one, make sure the date range of package
    based on the above date range to need to get the data in the table
    then LOOP itself, try to reduce data after
    LOOP itself, split the date range a a

    This approach requires setting up semantic groups
    Note: this article is my daily record of learning, do not carry out any commercial so do not support reprint please understand

Data analysis to obtain Yahoo stock data: some problems are encountered when using panda datareader (cannot import name ‘is_ list_ Like ‘problem)

1. Install the Quilt-Datareader dependency package:
Because Python 3.6 was already installed on my computer and I had learned about crawlers first, I already had a Python environment. Now I learn data scientific data analysis and install Anaconda again. In order not to cause chaos in my computer environment, after installing Anaconda, the environment variable of Anaconda is not written into the system environment variable. Then, to install the third party and use imperative operation, I need to open CMD in the path of the installation directory:
1.1 Use anaconda’s Python environment
In the root directory of the Anaconda installation, open CMD, enter Python, and this is the Python environment where the Anaconda is executed.
1.2 Use the conda command to install dependency packages or to view dependencies and other commands to be executed by Conda
Use the conda command: go to Anaconda3- > Library -> Execute under bin path (open CMD)
Open CMD in the directory above and execute conda commands, such as conda Install Augmentation-Datareader, etc
Check the anaconda in the environment depend on the package: conda list;
2 use the pandas – the datareader
Error importing pandas_datareader: cannot import name ‘is_list_like’
With this in mind, we can look at the reasons for the import error:

It says a file called Fred.py. We still don’t know what causes it. Look for the solution on the Internet and find an effective way to modify a statement of the file:
The first line of the original Fred.py file into the opening import is this from pandas.core.common import is_list_like
We modify this sentence to: from Safari. API. Types import is_list_like
When you go back to import, you find that the import was successful.
2.2 Use pandas_datareader to get Yahoo stock data and find an error.
pandas_datareader.get_data_yahoo(‘BABA’)

The reason has been stated in the content. This API interface has been abandoned. After checking the data, I found that it may be the reason why Yahoo was acquired by Verizon in 2017.
But there’s a new solution online:
We need to install an additional dependency package: fix_yahoo_finance (conda install again)
Import FIX_yahoo_Finance as fy after successful installation
From pandas_datareader import data as PDR

import fix_yahoo_finance as yf
yf.pdr_override() # needs to call this function

# to get data
data = PDR get_data_yahoo(“SPY”, start=”2017-01-01″, end=”2017-04-30″)
data = pdr.get_data_yahoo([“SPY”, “IWM”], start=”2017-01-01″, end=”2017-04-30″)
Tips: On Conda Install fix_yahoo_Finance, you may run into PackageNotFoundError: “Package missing in current channels”.
Solution 1:
Find the dependencies you want to install
Anaconda Search-t Conda you want to install packages such as Yahoo
(If there is no Python variable with anaconda added in the environment variable, it will be executed under the scripts installed)

As shown in the figure, you can see the installation package found (the result of the fuzzy search), but of course this package may not be searched, such as the one at the beginning (the unboxed part at the top).
If you do, you’ll see anaconda show < USER/PACKAGE> This is used to further view the installation information you want to install.
For example, I select one to view
anaconda show postelrich/yahoo-finance

The package will be given some information in the front, the last will be given how to install the directory, copy it, in conda is ok:
Conda install yahoo – channel https://conda.anaconda.org/postelrich – finance
Solution 2: Install locally
What do you do if you can’t find the dependencies you want to install?Download the file and install it locally.
For example, I used to use AlphaGam-DatareadErr to obtain stock data from Yahoo’s interface when I acquired the stock, but unfortunately I cannot do so now. The interface has been removed.
A search on the Internet found a FIX_yahoo_finance package can achieve the previous operation, so immediately go to conda Fix_yahoo_finance, found that the installation cannot, anaconde Search can not find this package, so I went to fix_yahoo_finance API website to find the source file download address, download to the local.
Documents: https://pypi.org/project/fix-yahoo-finance/
Download Address:
https://files.pythonhosted.org/packages/0a/96/d44330e427f5368cb8abd25997b72956a31b52073d285c4d5cd56e5fdc17/fix-yahoo-finance-0.0.22.tar.gz
Depending on the package, download and unzip the file setup.py

We can install this package locally. How to install it
CD into the fix_yahoo_finance directory, install it with Python setup.py install, and it will automatically install the dependency into the environment.
Don’t be fooled by my Pythonana, this is because I have two Pythons installed on my computer at the same time, as Mentioned earlier, so I’ve changed one python command to Python so that my Python doesn’t get in a fight. If you haven’t changed it, you can ignore it, and just go ahead and install it in Python.

At this point, we use:
From pandas_datareader import data as PDR

import fix_yahoo_finance as yf
yf.pdr_override() # needs to call this function

# to get data
data = PDR get_data_yahoo(“SPY”, start=”2017-01-01″, end=”2017-04-30″)
data = pdr.get_data_yahoo([“SPY”, “IWM”], start=”2017-01-01″, end=”2017-04-30″)
The stock data in Yahoo can be obtained normally, and the request network to obtain data is also relatively stable.

Performance Clarke error grid analysis

This is an analysis of the accuracy of the parity blood sugar prediction, as shown in the picture below. A lot of blood sugar monitors will say what’s the probability that our device is level A, which is the area A in the picture below, which is A very good area. In fact, it is very simple to draw such a graph. The Y-axis represents the predicted blood sugar value, and the X-axis is the reference value, which is generally considered to be the accurate value. Generate Clarke error network analysis chart matlab procedures can be private I oh, matlab. As a result of somebody else paper in, so post directly not good.