Robot Squirrel Productions
Robot Squirrel Productions
  • 10
  • 25 280
Using Python and Pandas to create a time series for CSV data
#Python #Jupyter #datavisualization #timeseriesanalysis
In a previous video (th-cam.com/video/y43_o2OnI68/w-d-xo.html), I showed you how to import a CSV file into Python using Pandas. Then we visualized the data with matplotlib. In this video, we take that data and add both time series and date time values to it.
Jupyter worksheet is available from: github.com/RobotSquirrelProd/Shorts
Visit robotsquirrelproductions.com/ for more diversions in vibration analysis. This website also has a companion blog page at robotsquirrelproductions.com/create-time-series-with-pandas/.
00:25 - Additional libraries
00:42 - Time series introduction
01:10 - Creating sample numbers
01:25 - Sample numbers to time series
01:42 - Create the time series
02:25 - Plot the data
03:00 - Intro to the time stamp data
03:12 - Replace dataframe index
03:30 - Create lambda function
04:18 - Review dataframe with new DateTime index
04:42 - Convert from UTC to local time
05:31 - Review the plot code
06:08 - Create the DateTime plot
Thanks for watching!
มุมมอง: 558

วีดีโอ

Python Plotting for Adobe Illustrator
มุมมอง 1.2Kปีที่แล้ว
#python #illustrator #matplotlib #pythonprogramming #pythontutorial #vectordrawing #vectordrawing You know how frustrating it can be if you have tried editing a Python matplotlib plot output in Adobe Illustrator. This tutorial shows you how to overcome matplotlib challenges and produce beautiful plots in Adobe Illustrator. I have included links to the Python code on GitHub and to the blog with ...
Using Python to Understand Motion/Video Aliasing
มุมมอง 82ปีที่แล้ว
When the digital system sampling rate fails to capture the continuous time events, something called aliasing can corrupt the signal. This video uses Python inside a Jupyter Notebook to generate animations that show this effect. #python #pythonprogramming #pythontutorial #videoeffects #aliasing #animation #manim I have included links to the Python code on GitHub, the blog with the code, and the ...
Create a time slice video using Python and Adobe After Effects
มุมมอง 1.5K2 ปีที่แล้ว
Are you looking to create eye-catching animations? I made this post to show how you can combine MATLAB and Adobe After Effects tools to create an animation and pixel history (a time slice) through a video. I hope you enjoy it! #python #pythonprogramming #pythontutorial #videoeffects #adobeaftereffects I have included links to the Python code on GitHub and the blog with the code. github.com/Robo...
Creating a time slice video in MATLAB and Adobe After Effects
มุมมอง 612 ปีที่แล้ว
Are you looking to create eye-catching animations? I made this post to show how you can combine MATLAB and Adobe’s After Effects tools to create a an animation and pixel history (a time slice) through a video. I hope you enjoy it! #matlab #matlabtutorials #videoeffects #adobeaftereffects I have included links to the MATLAB code on GitHub and the blog with the code. github.com/RobotSquirrelProd/...
High-Resolution Spectral Analysis using a Rigol D1054Z and Jupyter/Python
มุมมอง 6032 ปีที่แล้ว
#RigolDS1054Z #SpectralAnalysis #Python #Jupyter This tutorial shows how to import screen-resolution and high-resolution signals from the Rigol DS1054Z oscilloscope into a Jupyter notebook using Python. The tutorial also shows how to calculate and plot the single-sided FFT for each signal type. Single-sided FFT in Python is discussed in more detail here: th-cam.com/video/y43_o2OnI68/w-d-xo.html...
Using Python to Save a Rigol DS1054Z Screenshot
มุมมอง 8952 ปีที่แล้ว
#Python #Jupyter #RigolDS1054Z This tutorial shows how to import a bitmap screenshot from the Rigol DS1054Z oscilloscope into a Jupyter notebook using Python. Jupyter worksheet is available from: github.com/RobotSquirrelProd/Shorts Visit robotsquirrelproductions.com/ for more diversions in vibration analysis.
How to Plot CSV Data in Python Using Pandas
มุมมอง 13K2 ปีที่แล้ว
#Python #Jupyter #DataVisualization This tutorial shows how to import a comma-separated values (CSV) file into Jupyter using Python and visualize the data with the matplotlib library. Jupyter worksheet is available from: github.com/RobotSquirrelProd/Shorts Visit robotsquirrelproductions.com/ for more diversions in vibration analysis.
Spectral Analysis (Single-Sided FFT) with Microsoft (R) Excel
มุมมอง 3.7K2 ปีที่แล้ว
#Excel #Spectral Analysis This video provides a short tutorial showing how to calculate and plot a spectrum (single-sided FFT of a real-valued signal) in Microsoft (R) Excel. The intent is to provide a high-level tutorial on calculating an FFT, so the video skips the math and theoretical background. Please let me know in the comments if more or less explanation would be helpful. After completin...
Spectral Analysis (Single-Sided FFT) with Python and Jupyter
มุมมอง 4K2 ปีที่แล้ว
#Python #Jupyter #Spectral Analysis This video provides a short tutorial showing how to calculate and plot a spectrum (single-sided FFT of a real-valued signal) in Python using a Jupyter Notebook. The first half of the video is setting up the time domain signal, and the last half is the FFT portion. Jupyter worksheet is available from: github.com/RobotSquirrelProd/Shorts Visit robotsquirrelprod...

ความคิดเห็น

  • @JosephWeinerE
    @JosephWeinerE 10 ชั่วโมงที่ผ่านมา

    blurry

  • @philipjohnson5288
    @philipjohnson5288 หลายเดือนก่อน

    you have set the sampling frequency to 2048 Hz but I am uncertain as to what i_ns is exactly. I think it is the number of samples but am uncertain why the number of samples are based on the sample frequency. Your presentation is excellent .

  • @johnschindler9641
    @johnschindler9641 2 หลายเดือนก่อน

    Thanks! I needed that. Excel and MS help didn't get me all the way to a frequency plot and the phase plot is great; I would need that eventually. My real data is ugly but it's a start. BTW, I just learned Excel's COUNT doesn't see the complex numbers.

  • @kieranodriscoll1104
    @kieranodriscoll1104 3 หลายเดือนก่อน

    Excellent. Thank you.

  • @hatmonkey3103
    @hatmonkey3103 6 หลายเดือนก่อน

    Thanks for the tips! Reading a little more about backends for matplotlib. Looks like the default backend is 'Agg'? Does this mean that after I change the backend to cairo matplotlib.use('cairo') then I can do matplotlib.use('Agg') to revert to the original, default behavior? More on the topic of interfacing with Illustrator, I've noticed that whenever I save a figure to a svg (or pdf), then open it in Illustrator, the first thing I end up doing is putting a good deal of manual labor into reorganizing the file in Illustrator into a layers/groups scheme more convenient for me to work with (for instance, having all the x-ticks in one group, the y-ticks in another group, and both x-ticks and y-ticks in a parent group together... and similar other examples for tick labels, errorbars, etc.) Is there any way to have my python code influence the grouping/layering of elements of the exported vector graphic so that I can essentially automate the process of organizing all the elements into more convenient groups/layers? Thanks!

  • @kanadalux3621
    @kanadalux3621 7 หลายเดือนก่อน

    excelente video

  • @PetualangWawasan
    @PetualangWawasan 9 หลายเดือนก่อน

    Very easy to understand explanation, thank you!

  • @AndrewOsborne-rl9tz
    @AndrewOsborne-rl9tz 10 หลายเดือนก่อน

    Very helpful, thanks!

  • @bennguyen1313
    @bennguyen1313 10 หลายเดือนก่อน

    Is there any off the shelf solution that can open a csv file and the user can select which series to plot, and it will autoscale? For example, there's csv-plot (both an online version, and a python version Manu NALEPA nalepae/csv-plot ).. Or plotjuggler / matplotlib ? YMT-Lab csv-graph-viewer uses pyqtgraph which seems perfect, but for such a common application I'm hoping to find something that already exists for what I need.

  • @bennguyen1313
    @bennguyen1313 10 หลายเดือนก่อน

    I'd like to plot a csv file using pyqtgraph! I've seen a couple examples (Manu NALEPA nalepae/csv-plot and YMT-Lab csv-graph-viewer) but I'm having trouble building. I know matplotlib can be used*.. but I think the PyQtGraph has better graphics! * import matplotlib.pyplot as plt import csv x = [] y = [] with open('filename.csv','r') as csvfile: #where file contains rows of 2 columns name/data plots = csv.reader(csvfile, delimiter = ',') for row in plots: x.append(row[0]) y.append(int(row[1])) plt.bar(x, y, color = 'g', width = 0.72, label = "Y-Name") plt.xlabel('X-Label') plt.ylabel('Y-Label') plt.title('Title') plt.legend() plt.show()

    • @robotsquirrelproductions4856
      @robotsquirrelproductions4856 9 หลายเดือนก่อน

      I've never used PyQtGraph, thank you for posting and including a snippet!

  • @jomosoft
    @jomosoft ปีที่แล้ว

    Impressive ! I wasn’t however, not able to run the notebook file from the github.

  • @monenehmoneneh9561
    @monenehmoneneh9561 ปีที่แล้ว

    perfect

  • @Trix8574
    @Trix8574 2 ปีที่แล้ว

    Hey would you be able to help me on applying this algorithm to my dataset. I think I have it right but I wanted to see If I have done it right, Thanks!