Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Python Python Notes for me

LordSchitkunt

New Coder
Just some notes to remember syntax:

import numpy as np
-----------
import os
import pandas as pd

path = 'C:\\Users\Julia\Downloads\Lab11'
files = os.listdir(path)

masterList = []
for i in range(0, len(files)): #oops through files
data = pd.read_csv(path + '\\' + files) #eads each file
masterList.append(data) #puts the data from that file in an array
print(i)#prints the file number its on
final = pd.concat(masterList)
final.to_csv('C:\\Users\\Julia\Downloads\\lastname_lab11_problem2.csv)
-----------
import matplotlib.pyplot as plt
plt.hist(randArr)
plt.show()
---
plt.plot(a,0,'ro')
plt.title("Projectile Path")
plt.xlabel('x (m)')
plt.ylabel('y (m)')
= np.linspace(0,tof,200)
-------------------------
for a in randArr:
-----
x = [3,8,-2,6,7,-4,7,1,-5,8]
-----
index.append(x) #plus one to array
-----
if(x >= 90):
----
 
I know this post is from a while back. I noticed your post about Python notes—nice move! Taking good notes while learning Python is key.
I came across this website called Notepad https://notesonline.com/notepad that's been a game-changer for me. It's user-friendly and perfect for organizing all my coding notes. Plus, the cloud feature means I can access my notes from anywhere, which is super convenient. Give it a try and see how it fits into your Python learning journey. Happy coding, and keep those notes handy!
 

New Threads

Buy us a coffee!

Back
Top Bottom