Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Jupyter is not working properly
Post: RE: Jupyter is not working properly
(Apr-22-2021, 05:08 PM)Larz60+ Wrote: Quote:suddently, with no error message, nothing, jupyter stops working
Are their any error messages?
Mighty hard to pinpoint a reason for the termination withou... |
|
brunolelli |
General Coding Help |
3 |
2,933 |
Apr-22-2021, 07:59 PM |
|
|
Thread: Jupyter is not working properly
Post: Jupyter is not working properly
Hello guys,
I'm using jupyter notebook to run my code 24h a day, on 1 minute interval... and everything is working perfectly but suddently, with no error message, nothing, jupyter stops working. Wha... |
|
brunolelli |
General Coding Help |
3 |
2,933 |
Apr-22-2021, 11:58 AM |
|
|
Thread: On error > Try again
Post: On error > Try again
Hello guys,
I've the following code with a Try and Except statement, as you can see below:
import csv
import time
import sched, time
from datetime import datetime
from FlightRadar24.api import Flight... |
|
brunolelli |
General Coding Help |
2 |
2,278 |
Apr-22-2021, 11:51 AM |
|
|
Thread: Split and organize my Pandas Dataframe
Post: RE: Split and organize my Pandas Dataframe
(Apr-18-2021, 02:56 AM)klllmmm Wrote: Date can not be determine certainty as date is not shown.
Ex. below entries are belong to March month and it could be any Saturday within March month.
TAM3595... |
|
brunolelli |
General Coding Help |
4 |
2,645 |
Apr-18-2021, 03:00 AM |
|
|
Thread: Split and organize my Pandas Dataframe
Post: RE: Split and organize my Pandas Dataframe
Hello!
Thanks per your kindly response...
It's working now!
Would you mind helping me with another issue?
As you can see, the last column shows the "date vale", like "Fri 20:47 -04".
I'm not sure i... |
|
brunolelli |
General Coding Help |
4 |
2,645 |
Apr-17-2021, 06:23 PM |
|
|
Thread: Split and organize my Pandas Dataframe
Post: Split and organize my Pandas Dataframe
Hello guys,
I'm using the following code in order to collect the cancelled flights from some airlines:
import pandas as pd
url_ini = 'https://flightaware.com/live/fleet/'
url_fim = '/cancelled'
... |
|
brunolelli |
General Coding Help |
4 |
2,645 |
Apr-17-2021, 03:31 PM |
|
|
Thread: Getting values from a dictionary
Post: RE: Getting values from a dictionary
(Mar-31-2021, 08:39 PM)deanhystad Wrote: Are you just trying to print information? You can print the dictionary or sub-dictionaries like this:
print('Real time', details['time']['real'])
If you do... |
|
brunolelli |
General Coding Help |
5 |
3,519 |
Mar-31-2021, 08:46 PM |
|
|
Thread: Getting values from a dictionary
Post: RE: Getting values from a dictionary
(Mar-31-2021, 08:21 PM)jefsummers Wrote: Depends on the structure of the data. This does look pretty clear, what are you looking for?
I would like to add it in my code and export the information to ... |
|
brunolelli |
General Coding Help |
5 |
3,519 |
Mar-31-2021, 08:44 PM |
|
|
Thread: Getting values from a dictionary
Post: Getting values from a dictionary
Hello guys,
I'm using the following API project in order to collect some data from Flight Radar 24.
https://pypi.org/project/FlightRadarAPI/
In the project's documentation it's written that:
You ca... |
|
brunolelli |
General Coding Help |
5 |
3,519 |
Mar-31-2021, 07:24 PM |
|
|
Thread: IndexError: list index out of range
Post: RE: IndexError: list index out of range
(Mar-25-2021, 01:42 PM)deanhystad Wrote: Don't call this:
n_acft_voando = [dia, hora, nav[0], nav[1], nav[2]]Until you've done this three times:
for i in range(0,len(empresas)):
nav.appe... |
|
brunolelli |
General Coding Help |
11 |
6,351 |
Mar-25-2021, 11:36 PM |
|
|
Thread: IndexError: list index out of range
Post: RE: IndexError: list index out of range
I'll try to explain my problem and how I'm trying to solve it with this code:
Basically, running this code I'm able to collect some info of aircrafts flying right now from an airline called AZU
from ... |
|
brunolelli |
General Coding Help |
11 |
6,351 |
Mar-25-2021, 02:44 PM |
|
|
Thread: IndexError: list index out of range
Post: RE: IndexError: list index out of range
(Mar-25-2021, 02:26 PM)buran Wrote: writer = csv.writer(f, delimiter=';', quoting = csv.QUOTE_NONE)Note - I didn't look at previous discussion - maybe it's a problem that it was not split when the r... |
|
brunolelli |
General Coding Help |
11 |
6,351 |
Mar-25-2021, 02:35 PM |
|
|
Thread: IndexError: list index out of range
Post: RE: IndexError: list index out of range
(Mar-25-2021, 02:13 PM)buran Wrote: (Mar-25-2021, 02:04 PM)brunolelli Wrote: Why am I getting the following output:Because you have a string that has inside the delimiter used in the file - ;. So,... |
|
brunolelli |
General Coding Help |
11 |
6,351 |
Mar-25-2021, 02:21 PM |
|
|
Thread: IndexError: list index out of range
Post: RE: IndexError: list index out of range
(Mar-25-2021, 01:42 PM)deanhystad Wrote: Don't call this:
n_acft_voando = [dia, hora, nav[0], nav[1], nav[2]]Until you've done this three times:
for i in range(0,len(empresas)):
nav.appe... |
|
brunolelli |
General Coding Help |
11 |
6,351 |
Mar-25-2021, 02:04 PM |
|
|
Thread: IndexError: list index out of range
Post: RE: IndexError: list index out of range
(Mar-25-2021, 04:51 AM)bowlofred Wrote: list index out of range means you've used an index that is beyond the end of the list.
In your case you refer to nav[2] in that expression. If nav does not ... |
|
brunolelli |
General Coding Help |
11 |
6,351 |
Mar-25-2021, 01:03 PM |
|
|
Thread: IndexError: list index out of range
Post: IndexError: list index out of range
Hello guys...
What's going on with my code?
from tempfile import NamedTemporaryFile
from FlightRadar24.api import FlightRadar24API
from time import time, sleep
from datetime import datetime
import sh... |
|
brunolelli |
General Coding Help |
11 |
6,351 |
Mar-25-2021, 04:43 AM |
|
|
Thread: Why there's a 'blank line' on CSV file?
Post: RE: Why there's a 'blank line' on CSV file?
(Mar-24-2021, 11:00 PM)brunolelli Wrote: (Mar-24-2021, 10:55 PM)snippsat Wrote: If i just copy some of your data,then doing some stuff to get it in a list data structure.
You can append to list so... |
|
brunolelli |
General Coding Help |
4 |
3,007 |
Mar-24-2021, 11:09 PM |
|
|
Thread: Why there's a 'blank line' on CSV file?
Post: RE: Why there's a 'blank line' on CSV file?
(Mar-24-2021, 10:55 PM)snippsat Wrote: If i just copy some of your data,then doing some stuff to get it in a list data structure.
You can append to list so get similar structure,then it easy to writ... |
|
brunolelli |
General Coding Help |
4 |
3,007 |
Mar-24-2021, 11:00 PM |
|
|
Thread: Why there's a 'blank line' on CSV file?
Post: Why there's a 'blank line' on CSV file?
Hello guys,
With the following code I'm exporting my data to a CSV file:
from tempfile import NamedTemporaryFile
from FlightRadar24.api import FlightRadar24API
from time import time, sleep
from datet... |
|
brunolelli |
General Coding Help |
4 |
3,007 |
Mar-24-2021, 10:13 PM |
|
|
Thread: Insert a new column for Key Value
Post: Insert a new column for Key Value
hello guys,
I'm using the following code to save my list in a TXT file.
import numpy as np
a = [s.strip() for s in contents.splitlines()]
np.savetxt(r'C:\Users\bruno\Desktop\FII\LL.txt',
... |
|
brunolelli |
General Coding Help |
0 |
1,474 |
Mar-20-2021, 03:27 PM |