Python Column in Percentage

I need someone’s help with a data analysis issue. I am analysing a dataframe with data about sleep. It has 5 columns as follows: data frame Enough – Do you think that you get enough sleep? Hours – On average, how many hours of sleep do you get on a weeknight? PhoneReach – Do you… Read More Python Column in Percentage

Is there a way that with a for cicle I could run through the archives in a file in jupyter lab/python?

I’m doing an inform and with a group we run the experiment ten time and had created 10 csv files. But opening all one line of code at a time must not be the most efficient way to open and read them and I know there must be a way to open them with a… Read More Is there a way that with a for cicle I could run through the archives in a file in jupyter lab/python?

I got an error when extracting data from a csv file by pandas

I’m trying to get a signal out of aapl data but i got this error import numpy as np import pandas as pd import matplotlib.pyplot as plt from datetime import datetime apple_stock = pd.read_csv(‘AAPL.csv’) apple_stock = apple_stock.set_index(pd.DatetimeIndex(apple_stock[‘Date’].values)) ma30 = pd.DataFrame() ma30[‘AM’] = apple_stock[‘Adj Close’].rolling(window=30).mean() ma100 = pd.DataFrame() ma100[‘AM’] = apple_stock[‘Adj Close’].rolling(window=100).mean() data = pd.DataFrame() data[‘AAPL’]… Read More I got an error when extracting data from a csv file by pandas